Class DelegatingPoolAdapter
java.lang.Object
org.springframework.data.gemfire.client.PoolAdapter
org.springframework.data.gemfire.client.support.FactoryDefaultsPoolAdapter
org.springframework.data.gemfire.client.support.DelegatingPoolAdapter
- All Implemented Interfaces:
org.apache.geode.cache.client.Pool
DelegatingPoolAdapter
is an abstract implementation of GemFire's Pool
interface and extension of
FactoryDefaultsPoolAdapter
that delegates operations to the provided Pool
instance.
However, this implementation guards against a potentially null
Pool
reference by returning
default factory settings for the Pool
's configuration properties along with default behavior for operations
when the Pool
reference is null
.- Since:
- 1.8.0
- See Also:
-
InetSocketAddress
Pool
SocketFactory
QueryService
FactoryDefaultsPoolAdapter
-
Field Summary
Fields inherited from class org.springframework.data.gemfire.client.support.FactoryDefaultsPoolAdapter
DEFAULT_KEEP_ALIVE, DEFAULT_POOL_NAME, LOCALHOST
Fields inherited from class org.springframework.data.gemfire.client.PoolAdapter
NOT_IMPLEMENTED
-
Constructor Summary
ConstructorDescriptionDelegatingPoolAdapter
(org.apache.geode.cache.client.Pool delegate) Constructs an instance ofDelegatingPoolAdapter
initialized with the specifiedPool
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
destroy
(boolean keepAlive) static DelegatingPoolAdapter
from
(org.apache.geode.cache.client.Pool delegate) protected org.apache.geode.cache.client.Pool
int
long
int
int
int
int
int
boolean
getName()
int
long
boolean
org.apache.geode.cache.query.QueryService
int
int
int
int
int
org.apache.geode.cache.client.SocketFactory
int
int
boolean
int
int
int
boolean
Methods inherited from class org.springframework.data.gemfire.client.PoolAdapter
getThreadLocalConnections, releaseThreadLocalConnection
-
Constructor Details
-
DelegatingPoolAdapter
public DelegatingPoolAdapter(org.apache.geode.cache.client.Pool delegate) Constructs an instance ofDelegatingPoolAdapter
initialized with the specifiedPool
.- Parameters:
delegate
-Pool
used as the delegate; can be null.- See Also:
-
Pool
-
-
Method Details
-
from
-
getDelegate
protected org.apache.geode.cache.client.Pool getDelegate() -
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyed
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
isDestroyed
in classPoolAdapter
-
getFreeConnectionTimeout
public int getFreeConnectionTimeout()- Specified by:
getFreeConnectionTimeout
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getFreeConnectionTimeout
in classFactoryDefaultsPoolAdapter
-
getIdleTimeout
public long getIdleTimeout()- Specified by:
getIdleTimeout
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getIdleTimeout
in classFactoryDefaultsPoolAdapter
-
getLoadConditioningInterval
public int getLoadConditioningInterval()- Specified by:
getLoadConditioningInterval
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getLoadConditioningInterval
in classFactoryDefaultsPoolAdapter
-
getLocators
- Specified by:
getLocators
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getLocators
in classFactoryDefaultsPoolAdapter
-
getMaxConnections
public int getMaxConnections()- Specified by:
getMaxConnections
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getMaxConnections
in classFactoryDefaultsPoolAdapter
-
getMinConnections
public int getMinConnections()- Specified by:
getMinConnections
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getMinConnections
in classFactoryDefaultsPoolAdapter
-
getMaxConnectionsPerServer
public int getMaxConnectionsPerServer()- Specified by:
getMaxConnectionsPerServer
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getMaxConnectionsPerServer
in classFactoryDefaultsPoolAdapter
-
getMinConnectionsPerServer
public int getMinConnectionsPerServer()- Specified by:
getMinConnectionsPerServer
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getMinConnectionsPerServer
in classFactoryDefaultsPoolAdapter
-
getMultiuserAuthentication
public boolean getMultiuserAuthentication()- Specified by:
getMultiuserAuthentication
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getMultiuserAuthentication
in classFactoryDefaultsPoolAdapter
-
getName
- Specified by:
getName
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getName
in classFactoryDefaultsPoolAdapter
-
getOnlineLocators
- Specified by:
getOnlineLocators
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getOnlineLocators
in classFactoryDefaultsPoolAdapter
-
getPendingEventCount
public int getPendingEventCount()- Specified by:
getPendingEventCount
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getPendingEventCount
in classPoolAdapter
-
getPingInterval
public long getPingInterval()- Specified by:
getPingInterval
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getPingInterval
in classFactoryDefaultsPoolAdapter
-
getPRSingleHopEnabled
public boolean getPRSingleHopEnabled()- Specified by:
getPRSingleHopEnabled
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getPRSingleHopEnabled
in classFactoryDefaultsPoolAdapter
-
getQueryService
public org.apache.geode.cache.query.QueryService getQueryService()- Specified by:
getQueryService
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getQueryService
in classFactoryDefaultsPoolAdapter
-
getReadTimeout
public int getReadTimeout()- Specified by:
getReadTimeout
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getReadTimeout
in classFactoryDefaultsPoolAdapter
-
getRetryAttempts
public int getRetryAttempts()- Specified by:
getRetryAttempts
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getRetryAttempts
in classFactoryDefaultsPoolAdapter
-
getServerConnectionTimeout
public int getServerConnectionTimeout()- Specified by:
getServerConnectionTimeout
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getServerConnectionTimeout
in classFactoryDefaultsPoolAdapter
-
getServerGroup
- Specified by:
getServerGroup
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getServerGroup
in classFactoryDefaultsPoolAdapter
-
getServers
- Specified by:
getServers
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getServers
in classFactoryDefaultsPoolAdapter
-
getSocketBufferSize
public int getSocketBufferSize()- Specified by:
getSocketBufferSize
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSocketBufferSize
in classFactoryDefaultsPoolAdapter
-
getSocketConnectTimeout
public int getSocketConnectTimeout()- Specified by:
getSocketConnectTimeout
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSocketConnectTimeout
in classFactoryDefaultsPoolAdapter
-
getSocketFactory
public org.apache.geode.cache.client.SocketFactory getSocketFactory()- Specified by:
getSocketFactory
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSocketFactory
in classFactoryDefaultsPoolAdapter
-
getStatisticInterval
public int getStatisticInterval()- Specified by:
getStatisticInterval
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getStatisticInterval
in classFactoryDefaultsPoolAdapter
-
getSubscriptionAckInterval
public int getSubscriptionAckInterval()- Specified by:
getSubscriptionAckInterval
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSubscriptionAckInterval
in classFactoryDefaultsPoolAdapter
-
getSubscriptionEnabled
public boolean getSubscriptionEnabled()- Specified by:
getSubscriptionEnabled
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSubscriptionEnabled
in classFactoryDefaultsPoolAdapter
-
getSubscriptionMessageTrackingTimeout
public int getSubscriptionMessageTrackingTimeout()- Specified by:
getSubscriptionMessageTrackingTimeout
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSubscriptionMessageTrackingTimeout
in classFactoryDefaultsPoolAdapter
-
getSubscriptionRedundancy
public int getSubscriptionRedundancy()- Specified by:
getSubscriptionRedundancy
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSubscriptionRedundancy
in classFactoryDefaultsPoolAdapter
-
getSubscriptionTimeoutMultiplier
public int getSubscriptionTimeoutMultiplier()- Specified by:
getSubscriptionTimeoutMultiplier
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
getSubscriptionTimeoutMultiplier
in classFactoryDefaultsPoolAdapter
-
destroy
public void destroy()- Specified by:
destroy
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
destroy
in classFactoryDefaultsPoolAdapter
-
destroy
public void destroy(boolean keepAlive) - Specified by:
destroy
in interfaceorg.apache.geode.cache.client.Pool
- Overrides:
destroy
in classPoolAdapter
-