|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mesos.state.AbstractState
public abstract class AbstractState
Abstract implementation of State that provides operations on futures to make concrete classes easier to create.
| Constructor Summary | |
|---|---|
AbstractState()
|
|
| 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. |
protected void |
finalize()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractState()
| Method Detail |
|---|
public Future<Variable> fetch(String name)
State
fetch in interface Statepublic Future<Variable> store(Variable variable)
State
store in interface Statepublic Future<Boolean> expunge(Variable variable)
State
expunge in interface Statepublic Future<Iterator<String>> names()
State
names in interface Stateprotected void finalize()
finalize in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||