com.hazelcast.config
Class SemaphoreConfig

java.lang.Object
  extended by com.hazelcast.config.SemaphoreConfig
All Implemented Interfaces:
DataSerializable, Serializable

public class SemaphoreConfig
extends Object
implements DataSerializable

See Also:
Serialized Form

Constructor Summary
SemaphoreConfig()
           
SemaphoreConfig(String name)
           
SemaphoreConfig(String name, int initialPermits)
           
SemaphoreConfig(String name, SemaphoreConfig sc)
           
 
Method Summary
 String getFactoryClassName()
           
 SemaphoreFactory getFactoryImplementation()
           
 int getInitialPermits()
           
 String getName()
           
 boolean isFactoryEnabled()
           
 void readData(DataInput in)
           
 SemaphoreConfig setFactoryClassName(String factoryClassName)
           
 SemaphoreConfig setFactoryEnabled(boolean factoryEnabled)
           
 SemaphoreConfig setFactoryImplementation(SemaphoreFactory factoryImplementation)
           
 SemaphoreConfig setInitialPermits(int initialPermits)
           
 String toString()
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SemaphoreConfig

public SemaphoreConfig()

SemaphoreConfig

public SemaphoreConfig(String name)

SemaphoreConfig

public SemaphoreConfig(String name,
                       int initialPermits)

SemaphoreConfig

public SemaphoreConfig(String name,
                       SemaphoreConfig sc)
Method Detail

readData

public void readData(DataInput in)
              throws IOException
Specified by:
readData in interface DataSerializable
Throws:
IOException

writeData

public void writeData(DataOutput out)
               throws IOException
Specified by:
writeData in interface DataSerializable
Throws:
IOException

getName

public String getName()

getFactoryClassName

public String getFactoryClassName()

setFactoryClassName

public SemaphoreConfig setFactoryClassName(String factoryClassName)

isFactoryEnabled

public boolean isFactoryEnabled()

setFactoryEnabled

public SemaphoreConfig setFactoryEnabled(boolean factoryEnabled)

getFactoryImplementation

public SemaphoreFactory getFactoryImplementation()

setFactoryImplementation

public SemaphoreConfig setFactoryImplementation(SemaphoreFactory factoryImplementation)

getInitialPermits

public int getInitialPermits()

setInitialPermits

public SemaphoreConfig setInitialPermits(int initialPermits)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.