|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the streamable object typeC - the channel type that this handler usespublic interface StreamHandler<T,C extends Channel>

A stream handler for an individual object instance. Instances of this class are used on both
the local and remote side. Stream handlers are non-reentrant; in other words, it is an error
for a stream handler to have a stream type as one of its serializable fields or for a stream handler's
writeObject method (if any) to write a stream type.
| Method Summary | |
|---|---|
org.jboss.xnio.ChannelListener<? super C> |
getLocalHandler()
Get the local XNIO open handler for this stream. |
org.jboss.xnio.ChannelListener<? super C> |
getRemoteHandler()
Get the remote XNIO open handler for this stream. |
T |
getRemoteProxy(org.jboss.xnio.IoFuture<? extends C> futureChannel)
Get the remote proxy instance for this stream. |
| Method Detail |
|---|
org.jboss.xnio.ChannelListener<? super C> getLocalHandler()
transient fashion to prevent the local handler from being sent to the remote side.
org.jboss.xnio.ChannelListener<? super C> getRemoteHandler()
StreamHandler instance is on the remote side to avoid copying the handler across the wire.
T getRemoteProxy(org.jboss.xnio.IoFuture<? extends C> futureChannel)
StreamHandler instance is on the remote side to avoid copying the proxy instance across the wire.
This method will be called after getRemoteHandler().
futureChannel - the future channel
|
JBoss Remoting 3.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||