|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.adapter.AsynchChannelToClientRequestChannel
Creates a RequestChannel
out of a SynchChannel
.
Does not support handing requests. It can only be used to send requests.
Field Summary |
Fields inherited from interface org.activeio.Service |
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
Constructor Summary | |
AsynchChannelToClientRequestChannel(SynchChannel next)
|
Method Summary | |
void |
dispose()
This method should not throw any exceptions. |
RequestListener |
getRequestListener()
|
java.lang.Object |
narrow(java.lang.Class target)
Since a Channel may be composed from a chain of other Channel obejcts, this method allows you to query the chain for the specified interface. |
Packet |
request(Packet request,
long timeout)
Used to send a packet of information going 'down' the channel and wait for it's reponse 'up' packet. |
void |
setRequestListener(RequestListener requestListener)
Registers the RequestListener that the protcol will use to deliver request packets
comming 'up' the channel. |
void |
start()
Starts the channel. |
void |
stop(long timeout)
Stops the channel. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AsynchChannelToClientRequestChannel(SynchChannel next)
Method Detail |
public Packet request(Packet request, long timeout) throws java.io.IOException
RequestChannel
request
in interface RequestChannel
request
- timeout
-
java.io.IOException
public void setRequestListener(RequestListener requestListener) throws java.io.IOException
RequestChannel
RequestListener
that the protcol will use to deliver request packets
comming 'up' the channel.
setRequestListener
in interface RequestChannel
java.io.IOException
public RequestListener getRequestListener()
getRequestListener
in interface RequestChannel
public java.lang.Object narrow(java.lang.Class target)
Channel
narrow
in interface Channel
public void dispose()
Disposable
dispose
in interface Disposable
public void start() throws java.io.IOException
Service
start
in interface Service
java.io.IOException
public void stop(long timeout) throws java.io.IOException
Service
stop
in interface Service
timeout
- The amount of time the channel is allowed to take to gracefully stop. If the timeout
is exceeded, the channel should do a forcefull stop.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |