|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.clients.config.Property<T>
T - the type of the property valuepublic class Property<T>
A custom configuration property for proxies.
AbstractStatefulBuilder,
AbstractStatelessBuilder| Field Summary | |
|---|---|
static String |
sticky_session
The name of the sticky session property Property. |
static String |
timeout
The name of the call timeout Property. |
| Constructor Summary | |
|---|---|
Property(String name,
T value)
Creates an instance with a name and a value. |
|
| Method Summary | |
|---|---|
String |
name()
Returns the name of the property. |
static Property<Boolean> |
sticky_session(boolean value)
Return the sticky session Property. |
static Property<Long> |
timeout(long value)
Return the call timeout Property. |
static Property<Long> |
timeout(long duration,
TimeUnit unit)
Return the call timeout Property. |
T |
value()
Returns the value of the property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String timeout
Property.
public static final String sticky_session
Property.
| Constructor Detail |
|---|
public Property(String name,
T value)
name - the namevalue - the value| Method Detail |
|---|
public static Property<Long> timeout(long value)
Property.
value - the property value
public static Property<Long> timeout(long duration,
TimeUnit unit)
Property.
duration - the duration of the timeoutunit - the time unit of the timeout
public static Property<Boolean> sticky_session(boolean value)
Property.
value - the property value
public String name()
public T value()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||