public abstract class DelegatingPoolAdapter extends FactoryDefaultsPoolAdapter
DelegatingPoolAdapter
is an abstract implementation of Pivotal 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
.Pool
,
QueryService
,
FactoryDefaultsPoolAdapter
DEFAULT_KEEP_ALIVE, DEFAULT_POOL_NAME, LOCALHOST
NOT_IMPLEMENTED
Constructor and Description |
---|
DelegatingPoolAdapter(org.apache.geode.cache.client.Pool delegate)
Constructs an instance of
DelegatingPoolAdapter initialized with the specified Pool . |
public DelegatingPoolAdapter(org.apache.geode.cache.client.Pool delegate)
DelegatingPoolAdapter
initialized with the specified Pool
.delegate
- Pool
used as the delegate; can be null.Pool
public static DelegatingPoolAdapter from(org.apache.geode.cache.client.Pool delegate)
protected org.apache.geode.cache.client.Pool getDelegate()
public boolean isDestroyed()
isDestroyed
in interface org.apache.geode.cache.client.Pool
isDestroyed
in class PoolAdapter
public int getFreeConnectionTimeout()
getFreeConnectionTimeout
in interface org.apache.geode.cache.client.Pool
getFreeConnectionTimeout
in class FactoryDefaultsPoolAdapter
public long getIdleTimeout()
getIdleTimeout
in interface org.apache.geode.cache.client.Pool
getIdleTimeout
in class FactoryDefaultsPoolAdapter
public int getLoadConditioningInterval()
getLoadConditioningInterval
in interface org.apache.geode.cache.client.Pool
getLoadConditioningInterval
in class FactoryDefaultsPoolAdapter
public List<InetSocketAddress> getLocators()
getLocators
in interface org.apache.geode.cache.client.Pool
getLocators
in class FactoryDefaultsPoolAdapter
public int getMaxConnections()
getMaxConnections
in interface org.apache.geode.cache.client.Pool
getMaxConnections
in class FactoryDefaultsPoolAdapter
public int getMinConnections()
getMinConnections
in interface org.apache.geode.cache.client.Pool
getMinConnections
in class FactoryDefaultsPoolAdapter
public boolean getMultiuserAuthentication()
getMultiuserAuthentication
in interface org.apache.geode.cache.client.Pool
getMultiuserAuthentication
in class FactoryDefaultsPoolAdapter
public String getName()
getName
in interface org.apache.geode.cache.client.Pool
getName
in class FactoryDefaultsPoolAdapter
public List<InetSocketAddress> getOnlineLocators()
getOnlineLocators
in interface org.apache.geode.cache.client.Pool
getOnlineLocators
in class FactoryDefaultsPoolAdapter
public int getPendingEventCount()
getPendingEventCount
in interface org.apache.geode.cache.client.Pool
getPendingEventCount
in class PoolAdapter
public long getPingInterval()
getPingInterval
in interface org.apache.geode.cache.client.Pool
getPingInterval
in class FactoryDefaultsPoolAdapter
public boolean getPRSingleHopEnabled()
getPRSingleHopEnabled
in interface org.apache.geode.cache.client.Pool
getPRSingleHopEnabled
in class FactoryDefaultsPoolAdapter
public org.apache.geode.cache.query.QueryService getQueryService()
getQueryService
in interface org.apache.geode.cache.client.Pool
getQueryService
in class FactoryDefaultsPoolAdapter
public int getReadTimeout()
getReadTimeout
in interface org.apache.geode.cache.client.Pool
getReadTimeout
in class FactoryDefaultsPoolAdapter
public int getRetryAttempts()
getRetryAttempts
in interface org.apache.geode.cache.client.Pool
getRetryAttempts
in class FactoryDefaultsPoolAdapter
public String getServerGroup()
getServerGroup
in interface org.apache.geode.cache.client.Pool
getServerGroup
in class FactoryDefaultsPoolAdapter
public List<InetSocketAddress> getServers()
getServers
in interface org.apache.geode.cache.client.Pool
getServers
in class FactoryDefaultsPoolAdapter
public int getSocketBufferSize()
getSocketBufferSize
in interface org.apache.geode.cache.client.Pool
getSocketBufferSize
in class FactoryDefaultsPoolAdapter
public int getSocketConnectTimeout()
getSocketConnectTimeout
in interface org.apache.geode.cache.client.Pool
getSocketConnectTimeout
in class FactoryDefaultsPoolAdapter
public int getStatisticInterval()
getStatisticInterval
in interface org.apache.geode.cache.client.Pool
getStatisticInterval
in class FactoryDefaultsPoolAdapter
public int getSubscriptionAckInterval()
getSubscriptionAckInterval
in interface org.apache.geode.cache.client.Pool
getSubscriptionAckInterval
in class FactoryDefaultsPoolAdapter
public boolean getSubscriptionEnabled()
getSubscriptionEnabled
in interface org.apache.geode.cache.client.Pool
getSubscriptionEnabled
in class FactoryDefaultsPoolAdapter
public int getSubscriptionMessageTrackingTimeout()
getSubscriptionMessageTrackingTimeout
in interface org.apache.geode.cache.client.Pool
getSubscriptionMessageTrackingTimeout
in class FactoryDefaultsPoolAdapter
public int getSubscriptionRedundancy()
getSubscriptionRedundancy
in interface org.apache.geode.cache.client.Pool
getSubscriptionRedundancy
in class FactoryDefaultsPoolAdapter
public int getSubscriptionTimeoutMultiplier()
getSubscriptionTimeoutMultiplier
in interface org.apache.geode.cache.client.Pool
getSubscriptionTimeoutMultiplier
in class FactoryDefaultsPoolAdapter
public boolean getThreadLocalConnections()
getThreadLocalConnections
in interface org.apache.geode.cache.client.Pool
getThreadLocalConnections
in class FactoryDefaultsPoolAdapter
public void destroy()
destroy
in interface org.apache.geode.cache.client.Pool
destroy
in class FactoryDefaultsPoolAdapter
public void destroy(boolean keepAlive)
destroy
in interface org.apache.geode.cache.client.Pool
destroy
in class PoolAdapter
public void releaseThreadLocalConnection()
releaseThreadLocalConnection
in interface org.apache.geode.cache.client.Pool
releaseThreadLocalConnection
in class PoolAdapter
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.