Class PoolAdapter
java.lang.Object
org.springframework.data.gemfire.client.PoolAdapter
- All Implemented Interfaces:
Pool
- Direct Known Subclasses:
FactoryDefaultsPoolAdapter
The
PoolAdapter class is an abstract base class and default, no-op implementation of
the Pool interface that conveniently enables implementing classes to extend this adapter
and choose which Pool methods/operations are supported by this implementation.
For instance, one possible implementation is Spring Data GemFire's PoolFactoryBean, which can act as
a Pool in a context where only the Pool's "configuration" and meta-data are required,
but no actual connections or operating state information (e.g. pendingEventCount) is needed.- Since:
- 1.8.0
- Author:
- John Blum
- See Also:
-
Field Details
-
NOT_IMPLEMENTED
- See Also:
-
-
Constructor Details
-
PoolAdapter
public PoolAdapter()
-
-
Method Details
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfacePool
-
getFreeConnectionTimeout
public int getFreeConnectionTimeout()- Specified by:
getFreeConnectionTimeoutin interfacePool
-
getIdleTimeout
public long getIdleTimeout()- Specified by:
getIdleTimeoutin interfacePool
-
getLoadConditioningInterval
public int getLoadConditioningInterval()- Specified by:
getLoadConditioningIntervalin interfacePool
-
getLocators
- Specified by:
getLocatorsin interfacePool
-
getMaxConnections
public int getMaxConnections()- Specified by:
getMaxConnectionsin interfacePool
-
getMinConnections
public int getMinConnections()- Specified by:
getMinConnectionsin interfacePool
-
getMultiuserAuthentication
public boolean getMultiuserAuthentication()- Specified by:
getMultiuserAuthenticationin interfacePool
-
getName
-
getOnlineLocators
- Specified by:
getOnlineLocatorsin interfacePool
-
getPendingEventCount
public int getPendingEventCount()- Specified by:
getPendingEventCountin interfacePool
-
getPingInterval
public long getPingInterval()- Specified by:
getPingIntervalin interfacePool
-
getPRSingleHopEnabled
public boolean getPRSingleHopEnabled()- Specified by:
getPRSingleHopEnabledin interfacePool
-
getQueryService
- Specified by:
getQueryServicein interfacePool
-
getReadTimeout
public int getReadTimeout()- Specified by:
getReadTimeoutin interfacePool
-
getRetryAttempts
public int getRetryAttempts()- Specified by:
getRetryAttemptsin interfacePool
-
getServerConnectionTimeout
public int getServerConnectionTimeout()- Specified by:
getServerConnectionTimeoutin interfacePool
-
getServerGroup
- Specified by:
getServerGroupin interfacePool
-
getServers
- Specified by:
getServersin interfacePool
-
getSocketBufferSize
public int getSocketBufferSize()- Specified by:
getSocketBufferSizein interfacePool
-
getSocketConnectTimeout
public int getSocketConnectTimeout()- Specified by:
getSocketConnectTimeoutin interfacePool
-
getSocketFactory
- Specified by:
getSocketFactoryin interfacePool
-
getStatisticInterval
public int getStatisticInterval()- Specified by:
getStatisticIntervalin interfacePool
-
getSubscriptionAckInterval
public int getSubscriptionAckInterval()- Specified by:
getSubscriptionAckIntervalin interfacePool
-
getSubscriptionEnabled
public boolean getSubscriptionEnabled()- Specified by:
getSubscriptionEnabledin interfacePool
-
getSubscriptionMessageTrackingTimeout
public int getSubscriptionMessageTrackingTimeout()- Specified by:
getSubscriptionMessageTrackingTimeoutin interfacePool
-
getSubscriptionRedundancy
public int getSubscriptionRedundancy()- Specified by:
getSubscriptionRedundancyin interfacePool
-
getSubscriptionTimeoutMultiplier
public int getSubscriptionTimeoutMultiplier()- Specified by:
getSubscriptionTimeoutMultiplierin interfacePool
-
getThreadLocalConnections
public boolean getThreadLocalConnections()- Specified by:
getThreadLocalConnectionsin interfacePool
-
destroy
public void destroy() -
destroy
public void destroy(boolean keepAlive) -
releaseThreadLocalConnection
public void releaseThreadLocalConnection()- Specified by:
releaseThreadLocalConnectionin interfacePool
-