public interface StateObject extends Serializable
StateHandles
(directly resolve to state).
State objects define how to:
discardState()
method defines how state is permanently
disposed/deleted. After that method call, state may not be recoverable any more.Modifier and Type | Method and Description |
---|---|
void |
discardState()
Discards the state referred to by this handle, to free up resources in
the persistent storage.
|
long |
getStateSize()
Returns the size of the state in bytes.
|
void discardState() throws Exception
Exception
long getStateSize()
If the the size is not known, return 0
.
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.