|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PropertySet
Set of properties.
| Method Summary | |
|---|---|
void |
cancel(String name)
Removes callable to be cooked from the cooking queue, converting it to lazy, if it is not already cooked. |
void |
clear()
Removes all entries from the property set |
boolean |
compareProperties(PropertySet otherSet)
|
boolean |
containsAll(PropertySet subSet)
|
void |
cook(String name,
Callable<?> callable)
Puts callable to the property set for asynchronous invocation to retrieve value at some point in the future. |
void |
cook(String name,
Callable<?> callable,
long delay,
TimeUnit timeUnit)
Puts callable to the property set for asynchronous invocation to retrieve value at some point in the future after specified delay. |
void |
cooking(String name,
Future<?> future)
Puts value which is not ready yet but "is being cooked by another thread" to the property set to be used at some point of time in the future. |
Object |
get(String name)
Retrieves property. |
Object |
get(String name,
Object defaultValue)
|
Set<String> |
getPropertyNames()
|
PropertySet |
getSubset(String prefix)
|
void |
lazy(String name,
Callable<?> callable)
Puts callable to the property set. |
void |
mount(String prefix,
PropertySet source)
Mounts source property set at specified prefix. |
void |
remove(String name)
Removes property from the set. |
void |
set(String name,
Object value)
Sets property. |
void |
setAll(PropertySet source)
Copies all entries from the source property set to self. |
| Method Detail |
|---|
Set<String> getPropertyNames()
PropertySet getSubset(String prefix)
prefix -
void remove(String name)
name - void clear()
void mount(String prefix,
PropertySet source)
prefix - source - void setAll(PropertySet source)
source - boolean containsAll(PropertySet subSet)
subSet -
boolean compareProperties(PropertySet otherSet)
otherSet -
Object get(String name)
Object get(String name,
Object defaultValue)
name - Property name.defaultValue - Default value.
void set(String name,
Object value)
name - value -
void cook(String name,
Callable<?> callable)
name - callable -
void cook(String name,
Callable<?> callable,
long delay,
TimeUnit timeUnit)
name - callable - delay -
void cooking(String name,
Future<?> future)
name - future - Value being cooked.
void lazy(String name,
Callable<?> callable)
get() method for the given name is invoked.
name - callable - void cancel(String name)
name -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||