|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.remoting.transport.async.ChannelPool
a ChannelPool represents a logical connection to a remote uri. - It handles decomposing synchronous requests into async requests. - It pools AsychChannel connections to be able concurrently do multiple asyc sends.
| Constructor Summary | |
ChannelPool(InvokerLocator uri)
|
|
| Method Summary | |
void |
associate(Channel c)
Associate a channel to the pool. |
void |
connect()
Used to validate that a connection can be established. |
void |
disconnect()
Closes all the pooled channels. |
org.jboss.remoting.transport.async.ChannelPool.PooledAsynchChannel |
getNextAvailable()
Return the next available AsynchChannel object for a given invocation session. |
void |
sendDatagram(byte[] data)
|
byte[] |
sendRequest(byte[] data)
|
void |
sendResponse(byte[] data,
int requestId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChannelPool(InvokerLocator uri)
uri - | Method Detail |
public void connect()
throws IOException
IOExceptionpublic void disconnect()
public void associate(Channel c)
throws IOException
IOException
public org.jboss.remoting.transport.async.ChannelPool.PooledAsynchChannel getNextAvailable()
throws IOException
IOException
public void sendDatagram(byte[] data)
throws IOException
IOException
public byte[] sendRequest(byte[] data)
throws IOException
IOException
public void sendResponse(byte[] data,
int requestId)
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||