org.apache.geronimo.remoting.transport.async
Interface Channel

All Known Implementing Classes:
BlockingChannel, NonBlockingChannel

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.

Version:
$Revision: 1.3 $ $Date: 2004/03/10 09:59:20 $

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

Method Detail

open

public void open(URI uri,
                 URI backConnectURI,
                 ChannelListner listner)
          throws TransportException
opens a connection to another server.

Parameters:
uri -
listner -
Throws:
IOException
ConnectionFailedException
TransportException

open

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

Parameters:
listner -
Throws:
IOException
TransportException

close

public void close()
           throws TransportException
Throws:
TransportException

send

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

Throws:
TransportException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.