Class Property<T>

java.lang.Object
org.gcube.common.clients.config.Property<T>
Type Parameters:
T - the type of the property value

public class Property<T> extends Object
A custom configuration property for proxies.
Author:
Fabio Simeoni
See Also:
  • Field Details

  • Constructor Details

    • Property

      public Property(String name, T value)
      Creates an instance with a name and a value.
      Parameters:
      name - the name
      value - the value
  • Method Details

    • timeout

      public static Property<Long> timeout(long value)
      Return the call timeout Property.
      Parameters:
      value - the property value
      Returns:
      the property
    • timeout

      public static Property<Long> timeout(long duration, TimeUnit unit)
      Return the call timeout Property.
      Parameters:
      duration - the duration of the timeout
      unit - the time unit of the timeout
      Returns:
      the property
    • sticky_session

      public static Property<Boolean> sticky_session(boolean value)
      Return the sticky session Property.
      Parameters:
      value - the property value
      Returns:
      the property
    • name

      public String name()
      Returns the name of the property.
      Returns:
      the name
    • value

      public T value()
      Returns the value of the property.
      Returns:
      the value