Package com.github.f4b6a3.uuid.util
Class UuidSettings
- java.lang.Object
-
- com.github.f4b6a3.uuid.util.UuidSettings
-
public final class UuidSettings extends Object
Reads system properties and environment variables. The system properties has prevalence over environment variables. Available properties and variables: - uuidcreator.node - UUIDCREATOR_NODE
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringPROPERTY_NODEprotected static StringPROPERTY_NODEIDDeprecated.protected static StringPROPERTY_PREFIX
-
Constructor Summary
Constructors Modifier Constructor Description protectedUuidSettings()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected static voidclearProperty(String key)protected static StringgetEnvinronmentName(String key)static LonggetNodeIdentifier()static LonggetNodeIdentifierDeprecated()Deprecated.protected static StringgetProperty(String name)protected static StringgetPropertyName(String key)static voidsetNodeIdentifier(Long nodeid)static voidsetNodeIdentifierDeprecated(Long nodeid)Deprecated.protected static voidsetProperty(String key, String value)
-
-
-
Field Detail
-
PROPERTY_PREFIX
protected static final String PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
PROPERTY_NODE
protected static final String PROPERTY_NODE
- See Also:
- Constant Field Values
-
PROPERTY_NODEID
@Deprecated protected static final String PROPERTY_NODEID
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getNodeIdentifier
public static Long getNodeIdentifier()
-
setNodeIdentifier
public static void setNodeIdentifier(Long nodeid)
-
getNodeIdentifierDeprecated
@Deprecated public static Long getNodeIdentifierDeprecated()
Deprecated.
-
setNodeIdentifierDeprecated
@Deprecated public static void setNodeIdentifierDeprecated(Long nodeid)
Deprecated.
-
clearProperty
protected static void clearProperty(String key)
-
-