com.hazelcast.config
Class QueueConfig

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

public final class QueueConfig
extends Object
implements DataSerializable

See Also:
Serialized Form

Field Summary
static int DEFAULT_MAX_SIZE_PER_JVM
           
static int DEFAULT_TTL_SECONDS
           
 
Constructor Summary
QueueConfig()
           
QueueConfig(QueueConfig config)
           
 
Method Summary
 int getMaxSizePerJVM()
           
 String getName()
           
 int getTimeToLiveSeconds()
           
 boolean isCompatible(QueueConfig queueConfig)
           
 void readData(DataInput in)
           
 QueueConfig setMaxSizePerJVM(int maxSizePerJVM)
           
 QueueConfig setName(String name)
           
 QueueConfig setTimeToLiveSeconds(int timeToLiveSeconds)
           
 String toString()
           
 void writeData(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MAX_SIZE_PER_JVM

public static final int DEFAULT_MAX_SIZE_PER_JVM
See Also:
Constant Field Values

DEFAULT_TTL_SECONDS

public static final int DEFAULT_TTL_SECONDS
See Also:
Constant Field Values
Constructor Detail

QueueConfig

public QueueConfig()

QueueConfig

public QueueConfig(QueueConfig config)
Method Detail

getName

public String getName()
Returns:
the name

setName

public QueueConfig setName(String name)
Parameters:
name - the name to set

getMaxSizePerJVM

public int getMaxSizePerJVM()
Returns:
the maxSizePerJVM

setMaxSizePerJVM

public QueueConfig setMaxSizePerJVM(int maxSizePerJVM)
Parameters:
maxSizePerJVM - the maxSizePerJVM to set

getTimeToLiveSeconds

public int getTimeToLiveSeconds()
Returns:
the timeToLiveSeconds

setTimeToLiveSeconds

public QueueConfig setTimeToLiveSeconds(int timeToLiveSeconds)
Parameters:
timeToLiveSeconds - the timeToLiveSeconds to set

isCompatible

public boolean isCompatible(QueueConfig queueConfig)

toString

public String toString()
Overrides:
toString in class Object

writeData

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

readData

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


Copyright .9.2.3; 2008-2011 Hazel Ltd. All Rights Reserved.