|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.geronimo.proxy.SimpleComponent
org.apache.geronimo.remoting.transport.async.nio.NonBlockingChannel
The Blocking implementation of the AsynchChannel interface. This implemenation uses the standard Java 1.3 blocking socket IO.
| Constructor Summary | |
NonBlockingChannel()
|
|
| Method Summary | |
void |
close()
Starts to terminate the connection. |
AsyncMsg |
deserialize(ByteBuffer[] message)
|
URI |
getRemoteURI()
|
URI |
getRequestedURI()
|
void |
init(URI localURI,
SocketChannel socketChannel)
|
void |
open(ChannelListner listner)
starts an accepted connection. |
void |
open(URI remoteURI,
URI backConnectURI,
ChannelListner listner)
opens a connection to another server. |
void |
selectionEvent(SelectionKey selection)
When the SelectorKey is triggered, the service method will be called on the attachment. |
void |
send(AsyncMsg data)
Sends an asynch packet of data down the channel. |
| Methods inherited from class org.apache.geronimo.proxy.SimpleComponent |
getContainer, getObjectName, setContainer, setObjectName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NonBlockingChannel()
| Method Detail |
public void open(URI remoteURI,
URI backConnectURI,
ChannelListner listner)
throws TransportException
Channel
open in interface ChannelremoteURI - listner -
TransportException
public void init(URI localURI,
SocketChannel socketChannel)
throws IOException,
URISyntaxException
IOException
URISyntaxException
public void open(ChannelListner listner)
throws TransportException
Channel
open in interface Channellistner -
TransportException
public AsyncMsg deserialize(ByteBuffer[] message)
throws IOException
IOExceptionpublic void close()
close in interface Channelpublic URI getRemoteURI()
public void selectionEvent(SelectionKey selection)
SelectionEventListner
selectionEvent in interface SelectionEventListner
public void send(AsyncMsg data)
throws TransportException
Channel
send in interface ChannelTransportExceptionpublic URI getRequestedURI()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||