Example #1
0
 public CorbaOutboundConnectionCacheImpl(ORB orb, ContactInfo contactInfo) {
   super(
       orb,
       contactInfo.getConnectionCacheType(),
       ((CorbaContactInfo) contactInfo).getMonitoringName());
   this.connectionCache = new Hashtable();
 }
Example #2
0
 public Connection get(ContactInfo contactInfo) {
   if (orb.transportDebugFlag) {
     dprint(".get: " + contactInfo + " " + contactInfo.hashCode());
   }
   synchronized (backingStore()) {
     dprintStatistics();
     return (Connection) connectionCache.get(contactInfo);
   }
 }
Example #3
0
 public void put(ContactInfo contactInfo, Connection connection) {
   if (orb.transportDebugFlag) {
     dprint(".put: " + contactInfo + " " + contactInfo.hashCode() + " " + connection);
   }
   synchronized (backingStore()) {
     connectionCache.put(contactInfo, connection);
     connection.setConnectionCache(this);
     dprintStatistics();
   }
 }
Example #4
0
 public void remove(ContactInfo contactInfo) {
   if (orb.transportDebugFlag) {
     dprint(".remove: " + contactInfo + " " + contactInfo.hashCode());
   }
   synchronized (backingStore()) {
     if (contactInfo != null) {
       connectionCache.remove(contactInfo);
     }
     dprintStatistics();
   }
 }