Package org.gcube.common.clients.config
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:
AbstractStatefulBuilder,AbstractStatelessBuilder
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringname()Returns the name of the property.static Property<Boolean>sticky_session(boolean value)Return the sticky sessionProperty.static Property<Long>timeout(long value)Return the call timeoutProperty.static Property<Long>timeout(long duration, TimeUnit unit)Return the call timeoutProperty.Tvalue()Returns the value of the property.
-
-
-
Field Detail
-
timeout
public static final String timeout
The name of the call timeoutProperty.- See Also:
- Constant Field Values
-
sticky_session
public static final String sticky_session
The name of the sticky session propertyProperty.- See Also:
- Constant Field Values
-
-
Method Detail
-
timeout
public static Property<Long> timeout(long value)
Return the call timeoutProperty.- Parameters:
value- the property value- Returns:
- the property
-
timeout
public static Property<Long> timeout(long duration, TimeUnit unit)
Return the call timeoutProperty.- Parameters:
duration- the duration of the timeoutunit- the time unit of the timeout- Returns:
- the property
-
sticky_session
public static Property<Boolean> sticky_session(boolean value)
Return the sticky sessionProperty.- 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
-
-