Package com.hazelcast.config
Class CacheSimpleConfig.ExpiryPolicyFactoryConfig
java.lang.Object
com.hazelcast.config.CacheSimpleConfig.ExpiryPolicyFactoryConfig
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
- Enclosing class:
- CacheSimpleConfig
public static class CacheSimpleConfig.ExpiryPolicyFactoryConfig
extends Object
implements IdentifiedDataSerializable
Represents configuration for "ExpiryPolicyFactory".
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents duration configuration with duration amount and time unit for the "TimedExpiryPolicyFactoryConfig".static class
Represents configuration for time based "ExpiryPolicyFactory" with duration and time unit. -
Constructor Summary
ConstructorDescriptionExpiryPolicyFactoryConfig
(CacheSimpleConfig.ExpiryPolicyFactoryConfig.TimedExpiryPolicyFactoryConfig timedExpiryPolicyFactoryConfig) ExpiryPolicyFactoryConfig
(String className) -
Method Summary
-
Constructor Details
-
ExpiryPolicyFactoryConfig
public ExpiryPolicyFactoryConfig() -
ExpiryPolicyFactoryConfig
-
ExpiryPolicyFactoryConfig
public ExpiryPolicyFactoryConfig(CacheSimpleConfig.ExpiryPolicyFactoryConfig.TimedExpiryPolicyFactoryConfig timedExpiryPolicyFactoryConfig)
-
-
Method Details
-
getClassName
-
getTimedExpiryPolicyFactoryConfig
public CacheSimpleConfig.ExpiryPolicyFactoryConfig.TimedExpiryPolicyFactoryConfig getTimedExpiryPolicyFactoryConfig() -
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
equals
-
hashCode
public int hashCode() -
toString
-