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
Exception
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.