Package com.hazelcast.spi.properties
Class HazelcastProperty
java.lang.Object
com.hazelcast.spi.properties.HazelcastProperty
Interface for Hazelcast Member and Client properties.
-
Constructor Summary
ModifierConstructorDescriptionHazelcastProperty
(String name) HazelcastProperty
(String name, boolean defaultValue) HazelcastProperty
(String name, HazelcastProperty property) HazelcastProperty
(String name, Byte defaultValue) HazelcastProperty
(String name, Double defaultValue) HazelcastProperty
(String name, Enum<?> defaultEnum) HazelcastProperty
(String name, Float defaultValue) HazelcastProperty
(String name, Integer defaultValue) HazelcastProperty
(String name, Integer defaultValue, TimeUnit timeUnit) HazelcastProperty
(String name, Long defaultValue) HazelcastProperty
(String name, Long defaultValue, TimeUnit timeUnit) HazelcastProperty
(String name, String defaultValue) protected
HazelcastProperty
(String name, String defaultValue, TimeUnit timeUnit) HazelcastProperty
(String name, String defaultValue, TimeUnit timeUnit, HazelcastProperty parent) HazelcastProperty
(String name, Function<HazelcastProperties, ?> function) -
Method Summary
Modifier and TypeMethodDescriptionReturns the default value of the property.getName()
Returns the property name.Returns the parent { ClusterProperty} of the property.Gets the system property value of the property.Returns the { TimeUnit} of the property.setDeprecatedName
(String deprecatedName) Sets the deprecated name of this property.void
setSystemProperty
(String value) Sets the system property value of the property.toString()
-
Constructor Details
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
-
HazelcastProperty
public HazelcastProperty(String name, String defaultValue, TimeUnit timeUnit, HazelcastProperty parent)
-
-
Method Details
-
setDeprecatedName
Sets the deprecated name of this property. Useful if compatibility needs to be provided on property names. This method is thread-safe, but is expected to be called immediately after the HazelcastProperty is constructed.HazelcastProperty property = new HazelcastProperty("newname").setDeprecatedName("oldname");
- Parameters:
deprecatedName
- the deprecated name of the property- Returns:
- the updated { HazelcastProperty}
- Throws:
IllegalArgumentException
- if the deprecatedName is null or an empty string.
-
getFunction
-
getDeprecatedName
-
getName
Returns the property name.- Returns:
- the property name
-
getDefaultValue
Returns the default value of the property.- Returns:
- the default value or
null
if none is defined
-
getTimeUnit
Returns the { TimeUnit} of the property.- Returns:
- the { TimeUnit}
- Throws:
IllegalArgumentException
- if no { TimeUnit} is defined
-
getParent
Returns the parent { ClusterProperty} of the property.- Returns:
- the parent { ClusterProperty} or
null
if none is defined
-
setSystemProperty
Sets the system property value of the property.- Parameters:
value
- the value to set
-
getSystemProperty
Gets the system property value of the property.- Returns:
- the value of the property
-
toString
-