public CorbaOutboundConnectionCacheImpl(ORB orb, ContactInfo contactInfo) { super( orb, contactInfo.getConnectionCacheType(), ((CorbaContactInfo) contactInfo).getMonitoringName()); this.connectionCache = new Hashtable(); }
public Connection get(ContactInfo contactInfo) { if (orb.transportDebugFlag) { dprint(".get: " + contactInfo + " " + contactInfo.hashCode()); } synchronized (backingStore()) { dprintStatistics(); return (Connection) connectionCache.get(contactInfo); } }
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(); } }
public void remove(ContactInfo contactInfo) { if (orb.transportDebugFlag) { dprint(".remove: " + contactInfo + " " + contactInfo.hashCode()); } synchronized (backingStore()) { if (contactInfo != null) { connectionCache.remove(contactInfo); } dprintStatistics(); } }