public abstract class ByteStreamStateHandle extends Object implements StateHandle<Serializable>
| Constructor and Description |
|---|
ByteStreamStateHandle(Serializable state) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract InputStream |
getInputStream()
The state will be read from the stream returned by this method.
|
protected abstract OutputStream |
getOutputStream()
The state will be written to the stream returned by this method.
|
Serializable |
getState()
This retrieves and return the state represented by the handle.
|
boolean |
stateFetched()
Checks whether the state has already been fetched from the remote
storage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdiscardStatepublic ByteStreamStateHandle(Serializable state)
protected abstract OutputStream getOutputStream() throws Exception
Exceptionprotected abstract InputStream getInputStream() throws Exception
Exceptionpublic Serializable getState() throws Exception
StateHandlegetState in interface StateHandle<Serializable>Exception - Thrown, if the state cannot be fetched.public boolean stateFetched()
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.