|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mesos.state.InMemoryState
public class InMemoryState
An in-memory implementation of state.
| Constructor Summary | |
|---|---|
InMemoryState()
|
|
| Method Summary | |
|---|---|
Future<Boolean> |
expunge(Variable v)
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 v)
Returns an immutable "variable" representing the current value in the state if updating the specified variable in the state was successful, otherwise returns null. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryState()
| Method Detail |
|---|
public Future<Variable> fetch(String name)
State
fetch in interface Statepublic Future<Variable> store(Variable v)
State
store in interface Statepublic Future<Boolean> expunge(Variable v)
State
expunge in interface Statepublic Future<Iterator<String>> names()
State
names in interface State
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||