Calypso Gateway v1.0

codec.client
Class ClientRequestPool

java.lang.Object
  |
  +--codec.client.ClientRequestPool

public final class ClientRequestPool
extends java.lang.Object

Class taking care of the consistency of the Client Requests collection.


Field Summary
private  java.util.Map objects
           
 
Constructor Summary
ClientRequestPool()
           
 
Method Summary
 void deregister(long callID)
          Deregister Client Request identified by "callID".
 ClientRequest getRequest(long callID)
          Retrieve index of CORBA object identified by "callID" from pool.
 void register(ClientRequest request)
          Perform a thread-safe registration of the Client Request.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

objects

private java.util.Map objects
Constructor Detail

ClientRequestPool

public ClientRequestPool()
Method Detail

getRequest

public ClientRequest getRequest(long callID)
Retrieve index of CORBA object identified by "callID" from pool.
Returns:
null in case no such "callID" is registered.

register

public void register(ClientRequest request)
Perform a thread-safe registration of the Client Request. In case association "callID <-> ClientRequest" already exists, old request is deregistered and a new request is registered.

deregister

public void deregister(long callID)
Deregister Client Request identified by "callID".

Calypso Gateway v1.0