public interface StateHandle<T> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
discardState()
Discards the state referred to by this handle, to free up resources in
the persistent storage.
|
T |
getState(ClassLoader userCodeClassLoader)
This retrieves and return the state represented by the handle.
|
long |
getStateSize()
Returns the size of the state in bytes.
|
T getState(ClassLoader userCodeClassLoader) throws Exception
userCodeClassLoader - Class loader for deserializing user code specific classesException - Thrown, if the state cannot be fetched.void discardState()
throws Exception
ExceptionCopyright © 2014–2016 The Apache Software Foundation. All rights reserved.