Class HazelcastProperty

java.lang.Object
com.hazelcast.spi.properties.HazelcastProperty

public final class HazelcastProperty extends Object
Interface for Hazelcast Member and Client properties.
  • Constructor Details

    • HazelcastProperty

      public HazelcastProperty(String name)
    • HazelcastProperty

      public HazelcastProperty(@Nonnull String name, Function<HazelcastProperties,?> function)
    • HazelcastProperty

      public HazelcastProperty(String name, Enum<?> defaultEnum)
    • HazelcastProperty

      public HazelcastProperty(String name, boolean defaultValue)
    • HazelcastProperty

      public HazelcastProperty(String name, Integer defaultValue)
    • HazelcastProperty

      public HazelcastProperty(String name, Long defaultValue)
    • HazelcastProperty

      public HazelcastProperty(String name, Double defaultValue)
    • HazelcastProperty

      public HazelcastProperty(String name, Float defaultValue)
    • HazelcastProperty

      public HazelcastProperty(String name, Byte defaultValue)
    • HazelcastProperty

      public HazelcastProperty(String name, Integer defaultValue, TimeUnit timeUnit)
    • HazelcastProperty

      public HazelcastProperty(String name, Long defaultValue, TimeUnit timeUnit)
    • HazelcastProperty

      public HazelcastProperty(String name, HazelcastProperty property)
    • HazelcastProperty

      public HazelcastProperty(String name, String defaultValue)
    • HazelcastProperty

      protected HazelcastProperty(String name, String defaultValue, TimeUnit timeUnit)
    • HazelcastProperty

      public HazelcastProperty(String name, String defaultValue, TimeUnit timeUnit, HazelcastProperty parent)
  • Method Details

    • setDeprecatedName

      public HazelcastProperty setDeprecatedName(String deprecatedName)
      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

      public Function<HazelcastProperties,?> getFunction()
    • getDeprecatedName

      public String getDeprecatedName()
    • getName

      @Nonnull public String getName()
      Returns the property name.
      Returns:
      the property name
    • getDefaultValue

      public String getDefaultValue()
      Returns the default value of the property.
      Returns:
      the default value or null if none is defined
    • getTimeUnit

      public TimeUnit getTimeUnit()
      Returns the { TimeUnit} of the property.
      Returns:
      the { TimeUnit}
      Throws:
      IllegalArgumentException - if no { TimeUnit} is defined
    • getParent

      public HazelcastProperty getParent()
      Returns the parent { ClusterProperty} of the property.
      Returns:
      the parent { ClusterProperty} or null if none is defined
    • setSystemProperty

      public void setSystemProperty(String value)
      Sets the system property value of the property.
      Parameters:
      value - the value to set
    • getSystemProperty

      public String getSystemProperty()
      Gets the system property value of the property.
      Returns:
      the value of the property
    • toString

      public String toString()
      Overrides:
      toString in class Object