|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activeio.command.AsyncChannelToAsyncCommandChannel
Field Summary |
Fields inherited from interface org.activeio.Service |
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT |
Constructor Summary | |
AsyncChannelToAsyncCommandChannel(AsyncChannel channel,
WireFormat wireFormat)
|
Method Summary | |
void |
dispose()
This method should not throw any exceptions. |
Object |
narrow(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. |
void |
setCommandListener(CommandListener listener)
Allows a listener to be added for commands |
void |
start()
Starts the channel. |
void |
stop(long timeout)
Stops the channel. |
void |
writeCommand(Object command)
Sends a command down the channel towards the media, using a WireFormat to decide how to marshall the command onto the media. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AsyncChannelToAsyncCommandChannel(AsyncChannel channel, WireFormat wireFormat)
Method Detail |
public void writeCommand(Object command) throws IOException
AsyncCommandChannel
writeCommand
in interface AsyncCommandChannel
command
-
IOException
public Object narrow(Class target)
Channel
narrow
in interface Channel
public void dispose()
Disposable
dispose
in interface Disposable
public void start() throws IOException
Service
start
in interface Service
IOException
public void stop(long timeout) throws 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.
IOException
public void setCommandListener(CommandListener listener)
AsyncCommandChannel
setCommandListener
in interface AsyncCommandChannel
listener
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |