org.jboss.remoting.transport.async
Interface Channel

All Known Implementing Classes:
BlockingChannel

public interface Channel

An AsynchChannel allows you to transport bytes of data back and forth between a client and a server in a async manner. This interace abstraction is here so that it can be implemented using both the Blocking and Non-blocking IO APIs.

Author:
Hiram Chirino

Method Summary
 void close()
           
 void open(ChannelListner listner)
          starts an accepted connection.
 void open(InvokerLocator uri, ChannelListner listner)
          opens a connection to another server.
 void send(byte[][] data)
          Sends an asynch packet of data down the channel.
 

Method Detail

open

public void open(InvokerLocator uri,
                 ChannelListner listner)
          throws IOException,
                 ConnectionFailedException
opens a connection to another server.

Parameters:
uri -
listner -
Throws:
IOException
ConnectionFailedException

open

public void open(ChannelListner listner)
          throws IOException
starts an accepted connection.

Parameters:
listner -
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

send

public void send(byte[][] data)
          throws IOException
Sends an asynch packet of data down the channel. It does not wait wait for a response if possible.

Throws:
IOException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.