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, socketType
Fields inherited from class com.sun.corba.ee.impl.transport.ContactInfoBase
addressingDisposition, connectionCache, contactInfoList, effectiveTargetIOR, orb
Fields 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 void
createdConnection
(Connection conn) boolean
Used 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, toString
Methods 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:ContactInfo
Used to determine if the CorbaConnection used for a request should be cached. Iftrue
then 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:
shouldCacheConnection
in interfaceContactInfo
- Overrides:
shouldCacheConnection
in classContactInfoImpl
- Returns:
true
if a CorbaConnection created by thisContactInfo
should be cached.
-
createdConnection
-
createConnection
- Specified by:
createConnection
in interfaceContactInfo
- Overrides:
createConnection
in classContactInfoImpl
-