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 com.sun.corba.ee.impl.transport.ContactInfoImpl
cachedHashCode, hostname, isHashCodeCached, port, socketTypeFields inherited from class com.sun.corba.ee.impl.transport.ContactInfoBase
addressingDisposition, connectionCache, contactInfoList, effectiveTargetIOR, orbFields inherited from interface com.sun.corba.ee.spi.transport.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 com.sun.corba.ee.impl.transport.ContactInfoImpl
dprint, equals, getConnectionCacheType, getHost, getMonitoringName, getPort, getType, hashCode, isConnectionBased, toStringMethods inherited from class com.sun.corba.ee.impl.transport.ContactInfoBase
createMessageMediator, createOutputObject, getAddressingDisposition, getBroker, getClientRequestDispatcher, getConnectionCache, getContactInfoList, getEffectiveProfile, getEffectiveTargetIOR, getTargetIOR, setAddressingDisposition, setConnectionCache
-
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
-