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:
isDestroyed
in interfacePool
-
getFreeConnectionTimeout
public int getFreeConnectionTimeout()- Specified by:
getFreeConnectionTimeout
in interfacePool
-
getIdleTimeout
public long getIdleTimeout()- Specified by:
getIdleTimeout
in interfacePool
-
getLoadConditioningInterval
public int getLoadConditioningInterval()- Specified by:
getLoadConditioningInterval
in interfacePool
-
getLocators
- Specified by:
getLocators
in interfacePool
-
getMaxConnections
public int getMaxConnections()- Specified by:
getMaxConnections
in interfacePool
-
getMinConnections
public int getMinConnections()- Specified by:
getMinConnections
in interfacePool
-
getMultiuserAuthentication
public boolean getMultiuserAuthentication()- Specified by:
getMultiuserAuthentication
in interfacePool
-
getName
-
getOnlineLocators
- Specified by:
getOnlineLocators
in interfacePool
-
getPendingEventCount
public int getPendingEventCount()- Specified by:
getPendingEventCount
in interfacePool
-
getPingInterval
public long getPingInterval()- Specified by:
getPingInterval
in interfacePool
-
getPRSingleHopEnabled
public boolean getPRSingleHopEnabled()- Specified by:
getPRSingleHopEnabled
in interfacePool
-
getQueryService
- Specified by:
getQueryService
in interfacePool
-
getReadTimeout
public int getReadTimeout()- Specified by:
getReadTimeout
in interfacePool
-
getRetryAttempts
public int getRetryAttempts()- Specified by:
getRetryAttempts
in interfacePool
-
getServerConnectionTimeout
public int getServerConnectionTimeout()- Specified by:
getServerConnectionTimeout
in interfacePool
-
getServerGroup
- Specified by:
getServerGroup
in interfacePool
-
getServers
- Specified by:
getServers
in interfacePool
-
getSocketBufferSize
public int getSocketBufferSize()- Specified by:
getSocketBufferSize
in interfacePool
-
getSocketConnectTimeout
public int getSocketConnectTimeout()- Specified by:
getSocketConnectTimeout
in interfacePool
-
getSocketFactory
- Specified by:
getSocketFactory
in interfacePool
-
getStatisticInterval
public int getStatisticInterval()- Specified by:
getStatisticInterval
in interfacePool
-
getSubscriptionAckInterval
public int getSubscriptionAckInterval()- Specified by:
getSubscriptionAckInterval
in interfacePool
-
getSubscriptionEnabled
public boolean getSubscriptionEnabled()- Specified by:
getSubscriptionEnabled
in interfacePool
-
getSubscriptionMessageTrackingTimeout
public int getSubscriptionMessageTrackingTimeout()- Specified by:
getSubscriptionMessageTrackingTimeout
in interfacePool
-
getSubscriptionRedundancy
public int getSubscriptionRedundancy()- Specified by:
getSubscriptionRedundancy
in interfacePool
-
getSubscriptionTimeoutMultiplier
public int getSubscriptionTimeoutMultiplier()- Specified by:
getSubscriptionTimeoutMultiplier
in interfacePool
-
getThreadLocalConnections
public boolean getThreadLocalConnections()- Specified by:
getThreadLocalConnections
in interfacePool
-
destroy
public void destroy() -
destroy
public void destroy(boolean keepAlive) -
releaseThreadLocalConnection
public void releaseThreadLocalConnection()- Specified by:
releaseThreadLocalConnection
in interfacePool
-