@Deprecated public abstract class HazelcastProperties extends Object
HazelcastProperty
).
Deprecated since Hazelcast 3.7.
This is private API, don't use it.Modifier | Constructor and Description |
---|---|
protected |
HazelcastProperties(Properties nullableProperties)
Deprecated.
Creates a container with configured Hazelcast properties.
|
protected |
HazelcastProperties(Properties nullableProperties,
HazelcastProperty[] hazelcastProperties)
Deprecated.
Creates a container with configured Hazelcast properties.
|
Modifier and Type | Method and Description |
---|---|
String |
get(String key)
Deprecated.
Returns the value for the given key.
|
boolean |
getBoolean(HazelcastProperty property)
Deprecated.
Returns the configured boolean value of a
HazelcastProperty . |
<E extends Enum> |
getEnum(GroupProperty property,
Class<E> enumClazz)
Deprecated.
Returns the configured enum value of a
GroupProperty . |
float |
getFloat(HazelcastProperty property)
Deprecated.
Returns the configured float value of a
HazelcastProperty . |
int |
getInteger(HazelcastProperty property)
Deprecated.
Returns the configured int value of a
HazelcastProperty . |
long |
getLong(HazelcastProperty property)
Deprecated.
Returns the configured long value of a
HazelcastProperty . |
long |
getMillis(HazelcastProperty property)
Deprecated.
Returns the configured value of a
HazelcastProperty converted to milliseconds. |
long |
getNanos(HazelcastProperty property)
Deprecated.
Returns the configured value of a
HazelcastProperty converted to nanoseconds. |
int |
getSeconds(HazelcastProperty property)
Deprecated.
Returns the configured value of a
HazelcastProperty converted to seconds. |
String |
getString(HazelcastProperty property)
Deprecated.
Returns the configured value of a
HazelcastProperty as String. |
Set<String> |
keySet()
Deprecated.
Returns an immutable set of all keys in this HazelcastProperties.
|
protected HazelcastProperties(Properties nullableProperties, HazelcastProperty[] hazelcastProperties)
nullableProperties
- Properties
used to configure the HazelcastProperty
values.
Properties are allowed to be null.hazelcastProperties
- array of HazelcastProperty
to configureprotected HazelcastProperties(Properties nullableProperties)
nullableProperties
- Properties
used to configure the HazelcastProperty
values.
Properties are allowed to be null.public Set<String> keySet()
public String get(String key)
key
- the keyNullPointerException
- if key is null.public String getString(HazelcastProperty property)
HazelcastProperty
as String.property
- the HazelcastProperty
to get the value frompublic boolean getBoolean(HazelcastProperty property)
HazelcastProperty
.property
- the HazelcastProperty
to get the value frompublic int getInteger(HazelcastProperty property)
HazelcastProperty
.property
- the HazelcastProperty
to get the value fromNumberFormatException
- if the value cannot be parsedpublic long getLong(HazelcastProperty property)
HazelcastProperty
.property
- the HazelcastProperty
to get the value fromNumberFormatException
- if the value cannot be parsedpublic float getFloat(HazelcastProperty property)
HazelcastProperty
.property
- the HazelcastProperty
to get the value fromNumberFormatException
- if the value cannot be parsedpublic long getNanos(HazelcastProperty property)
HazelcastProperty
converted to nanoseconds.property
- the HazelcastProperty
to get the value fromIllegalArgumentException
- if the HazelcastProperty
has no TimeUnit
public long getMillis(HazelcastProperty property)
HazelcastProperty
converted to milliseconds.property
- the HazelcastProperty
to get the value fromIllegalArgumentException
- if the HazelcastProperty
has no TimeUnit
public int getSeconds(HazelcastProperty property)
HazelcastProperty
converted to seconds.property
- the HazelcastProperty
to get the value fromIllegalArgumentException
- if the HazelcastProperty
has no TimeUnit
public <E extends Enum> E getEnum(GroupProperty property, Class<E> enumClazz)
GroupProperty
.
The case of the enum is ignored.property
- the GroupProperty
to get the value fromIllegalArgumentException
- if the enum value can't be foundCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.