public final class HazelcastProperty extends Object
Modifier | Constructor and Description |
---|---|
|
HazelcastProperty(String name) |
|
HazelcastProperty(String name,
boolean defaultValue) |
|
HazelcastProperty(String name,
Byte defaultValue) |
|
HazelcastProperty(String name,
HazelcastProperty groupProperty) |
|
HazelcastProperty(String name,
Integer defaultValue) |
|
HazelcastProperty(String name,
Integer defaultValue,
TimeUnit timeUnit) |
|
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) |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue()
Returns the default value of the property.
|
String |
getDeprecatedName() |
String |
getName()
Returns the property name.
|
HazelcastProperty |
getParent()
Returns the parent
GroupProperty of the property. |
String |
getSystemProperty()
Gets the system property value of the property.
|
TimeUnit |
getTimeUnit()
Returns the
TimeUnit of the property. |
HazelcastProperty |
setDeprecatedName(String deprecatedName)
Sets the deprecated name of ths property.
|
void |
setSystemProperty(String value)
Sets the system property value of the property.
|
String |
toString() |
public HazelcastProperty(String name)
public HazelcastProperty(String name, boolean defaultValue)
public HazelcastProperty(String name, HazelcastProperty groupProperty)
public HazelcastProperty(String name, String defaultValue, TimeUnit timeUnit, HazelcastProperty parent)
public HazelcastProperty setDeprecatedName(String deprecatedName)
HazelcastProperty property = new HazelcastProperty("newname").setDeprecatedName("oldname");
deprecatedName
- the deprecated name of the propertyHazelcastProperty
IllegalArgumentException
- if the deprecatedName is null or an empty string.public String getDeprecatedName()
public String getName()
public String getDefaultValue()
public TimeUnit getTimeUnit()
TimeUnit
of the property.TimeUnit
IllegalArgumentException
- if no TimeUnit
is definedpublic HazelcastProperty getParent()
GroupProperty
of the property.GroupProperty
or null if none is definedpublic void setSystemProperty(String value)
value
- the value to setpublic String getSystemProperty()
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.