variable = state.fetch("machines");
Variable machines = variable.get();
machines = machines.mutate(...);
variable = state.store(machines);
machines = variable.get();
|
Method Summary |
Future<Boolean> |
expunge(Variable variable)
Returns true if successfully expunged the variable from the state
or false if the variable did not exist or was no longer valid. |
Future<Variable> |
fetch(String name)
Returns an immutable "variable" representing the current value
from the state associated with the specified name. |
Future<Iterator<String>> |
names()
Returns an iterator of variable names in the state. |
Future<Variable> |
store(Variable variable)
Returns an immutable "variable" representing the current value in
the state if updating the specified variable in the state was
successful, otherwise returns null. |
fetch
Future<Variable> fetch(String name)
- Returns an immutable "variable" representing the current value
from the state associated with the specified name.
store
Future<Variable> store(Variable variable)
- Returns an immutable "variable" representing the current value in
the state if updating the specified variable in the state was
successful, otherwise returns null.
expunge
Future<Boolean> expunge(Variable variable)
- Returns true if successfully expunged the variable from the state
or false if the variable did not exist or was no longer valid.
names
Future<Iterator<String>> names()
- Returns an iterator of variable names in the state.
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.