org.apache.geronimo.remoting.transport.async
Class AsyncClient
java.lang.Object
org.apache.geronimo.remoting.transport.async.AsyncClient
- All Implemented Interfaces:
- Router, TransportClient
- public class AsyncClient
- extends Object
- implements TransportClient
AsyncClientInvoker uses sockets to remotely connect to the
a remote AsyncServerInvoker. Requests are sent asynchronously
to allow more concurrent requests to be sent to the server
while using fewer sockets. This is also known as the 'async'
protocol.
TODO:
If you are running on Java 1.4, this transport
transport will take advantage of the NIO
classes to further reduce the resources used on the server.
- Version:
- $Revision: 1.6 $ $Date: 2004/03/10 09:59:20 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsyncClient
public AsyncClient()
sendRequest
public Msg sendRequest(URI to,
Msg request)
throws TransportException
- Description copied from interface:
Router
- Sends a request message to the other end.
- Specified by:
sendRequest
in interface Router
- Parameters:
request
-
- Returns:
-
- Throws:
TransportException
- See Also:
org.apache.geronimo.remoting.transport.TransportClient#sendRequest(org.apache.geronimo.remoting.URI, byte[])
sendDatagram
public void sendDatagram(URI to,
Msg request)
throws TransportException
- Description copied from interface:
Router
- Sends a datagram message. No response is expected.
- Specified by:
sendDatagram
in interface Router
- Parameters:
request
-
- Returns:
-
- Throws:
TransportException
- See Also:
org.apache.j2ee.remoting.transport.TransportClient#sendDatagram(org.apache.j2ee.remoting.URI, byte[])
createMsg
public Msg createMsg()
- Specified by:
createMsg
in interface TransportClient
- See Also:
TransportClient.createMsg()
createMarshalledObject
public MarshalledObject createMarshalledObject()
- Specified by:
createMarshalledObject
in interface TransportClient
- See Also:
TransportClient.createMarshalledObject()
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.