Class NoConnectionCacheImpl.NCCContactInfoImpl
java.lang.Object
com.sun.corba.ee.impl.transport.ContactInfoBase
com.sun.corba.ee.impl.transport.ContactInfoImpl
com.sun.corba.ee.impl.plugin.hwlb.NoConnectionCacheImpl.NCCContactInfoImpl
- All Implemented Interfaces:
ContactInfo, SocketInfo
- Enclosing class:
NoConnectionCacheImpl
-
Field Summary
Fields inherited from class ContactInfoImpl
cachedHashCode, hostname, isHashCodeCached, port, socketTypeFields inherited from class ContactInfoBase
addressingDisposition, connectionCache, contactInfoList, effectiveTargetIOR, orbFields inherited from interface SocketInfo
IIOP_CLEAR_TEXT, SSL_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionNCCContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcreatedConnection(Connection conn) booleanUsed to determine if the CorbaConnection used for a request should be cached.Methods inherited from class ContactInfoImpl
dprint, equals, getConnectionCacheType, getHost, getMonitoringName, getPort, getType, hashCode, isConnectionBased, toString
-
Constructor Details
-
NCCContactInfoImpl
public NCCContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, String socketType, String hostname, int port)
-
-
Method Details
-
shouldCacheConnection
public boolean shouldCacheConnection()Description copied from interface:ContactInfoUsed to determine if the CorbaConnection used for a request should be cached. Iftruethen the ORB will attempt to reuse an existing CorbaConnection. If one is not found it will create a new one and cache it for future use.- Specified by:
shouldCacheConnectionin interfaceContactInfo- Overrides:
shouldCacheConnectionin classContactInfoImpl- Returns:
trueif a CorbaConnection created by thisContactInfoshould be cached.
-
createdConnection
-
createConnection
- Specified by:
createConnectionin interfaceContactInfo- Overrides:
createConnectionin classContactInfoImpl
-