org.ow2.petals.transport.platform.nio.selector
Interface NioClient

All Known Implementing Classes:
NioClientAgent

public interface NioClient

Interface of the Fractal component associated to the NIO client.

Author:
Christophe DENEUX (Capgemini Sud)

Method Summary
 void onClose(java.nio.channels.SocketChannel socketChannel)
          The callback caller will close the socket channel next.
 void onConnectionError(java.io.IOException exception)
           
 void onIsConnected(OutputSocketChannelContext oscc)
          Callbacks used by the TCP connection process
 void onIsWritten()
          Callbacks used by the TCP write process
 void onWriteError(java.io.IOException exception)
           
 void send(java.lang.Object obj, long timeout)
           
 

Method Detail

onClose

void onClose(java.nio.channels.SocketChannel socketChannel)
The callback caller will close the socket channel next.

Parameters:
socketChannel - The socket channel that has been detected as closed.

onConnectionError

void onConnectionError(java.io.IOException exception)

onIsConnected

void onIsConnected(OutputSocketChannelContext oscc)
Callbacks used by the TCP connection process


onIsWritten

void onIsWritten()
                 throws java.io.IOException
Callbacks used by the TCP write process

Throws:
java.io.IOException

onWriteError

void onWriteError(java.io.IOException exception)
                  throws java.io.IOException
Throws:
java.io.IOException

send

void send(java.lang.Object obj,
          long timeout)
          throws java.io.IOException,
                 java.lang.InterruptedException
Throws:
java.io.IOException
java.lang.InterruptedException


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.