示例#1
0
 public Connection get(ContactInfo contactInfo) {
   if (orb.transportDebugFlag) {
     dprint(".get: " + contactInfo + " " + contactInfo.hashCode());
   }
   synchronized (backingStore()) {
     dprintStatistics();
     return (Connection) connectionCache.get(contactInfo);
   }
 }
示例#2
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();
   }
 }
示例#3
0
 public void remove(ContactInfo contactInfo) {
   if (orb.transportDebugFlag) {
     dprint(".remove: " + contactInfo + " " + contactInfo.hashCode());
   }
   synchronized (backingStore()) {
     if (contactInfo != null) {
       connectionCache.remove(contactInfo);
     }
     dprintStatistics();
   }
 }