org.activeio.command
Interface AsyncCommandChannel

All Superinterfaces:
Channel, Disposable, Service
All Known Implementing Classes:
AsyncChannelToAsyncCommandChannel

public interface AsyncCommandChannel
extends Channel

Allows command objects to be written into a channel

Version:
$Revision: 1.1 $

Field Summary
 
Fields inherited from interface org.activeio.Service
NO_WAIT_TIMEOUT, WAIT_FOREVER_TIMEOUT
 
Method Summary
 void setCommandListener(CommandListener listener)
          Allows a listener to be added for commands
 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 interface org.activeio.Channel
narrow
 
Methods inherited from interface org.activeio.Disposable
dispose
 
Methods inherited from interface org.activeio.Service
start, stop
 

Method Detail

writeCommand

public void writeCommand(Object command)
                  throws IOException
Sends a command down the channel towards the media, using a WireFormat to decide how to marshall the command onto the media.

Parameters:
command -
Throws:
IOException

setCommandListener

public void setCommandListener(CommandListener listener)
Allows a listener to be added for commands

Parameters:
listener -


Copyright © -2007 The ActiveIO Project. All Rights Reserved.