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
private static class NoConnectionCacheImpl.NCCContactInfoImpl extends ContactInfoImpl
-
-
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
Constructors Constructor Description NCCContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, java.lang.String socketType, java.lang.String hostname, int port)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
createConnection()
private void
createdConnection(Connection conn)
boolean
shouldCacheConnection()
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 Detail
-
NCCContactInfoImpl
public NCCContactInfoImpl(ORB orb, ContactInfoList contactInfoList, IOR effectiveTargetIOR, short addressingDisposition, java.lang.String socketType, java.lang.String hostname, int port)
-
-
Method Detail
-
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
@InfoMethod private void createdConnection(Connection conn)
-
createConnection
public Connection createConnection()
- Specified by:
createConnection
in interfaceContactInfo
- Overrides:
createConnection
in classContactInfoImpl
-
-