Class DefaultableDelegatingPoolAdapter
java.lang.Object
org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter
The
DefaultableDelegatingPoolAdapter
class is a wrapper class around Pool
allowing default configuration property values to be provided in the case that the Pool's
settings were null.- Since:
- 1.8.0
- See Also:
-
Pool
-
Constructor Summary
ModifierConstructorDescriptionprotected
DefaultableDelegatingPoolAdapter
(org.apache.geode.cache.client.Pool delegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected <E,
T extends Collection<E>>
TdefaultIfEmpty
(T defaultValue, Supplier<T> valueProvider) protected <T> T
defaultIfNull
(T defaultValue, Supplier<T> valueProvider) void
destroy()
void
destroy
(boolean keepAlive) from
(org.apache.geode.cache.client.Pool delegate) protected org.apache.geode.cache.client.Pool
int
getFreeConnectionTimeout
(Integer defaultFreeConnectionTimeout) long
getIdleTimeout
(Long defaultIdleTimeout) int
getLoadConditioningInterval
(Integer defaultLoadConditioningInterval) getLocators
(List<InetSocketAddress> defaultLocators) int
getMaxConnections
(Integer defaultMaxConnections) int
getMinConnections
(Integer defaultMinConnections) boolean
getMultiuserAuthentication
(Boolean defaultMultiUserAuthentication) getName()
int
long
getPingInterval
(Long defaultPingInterval) protected org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference
boolean
getPRSingleHopEnabled
(Boolean defaultPrSingleHopEnabled) org.apache.geode.cache.query.QueryService
getQueryService
(org.apache.geode.cache.query.QueryService defaultQueryService) int
getReadTimeout
(Integer defaultReadTimeout) int
getRetryAttempts
(Integer defaultRetryAttempts) int
getServerConnectionTimeout
(Integer defaultServerConnectionTimeout) getServerGroup
(String defaultServerGroup) getServers
(List<InetSocketAddress> defaultServers) int
getSocketBufferSize
(Integer defaultSocketBufferSize) int
getSocketConnectTimeout
(Integer defaultSocketConnectTimeout) org.apache.geode.cache.client.SocketFactory
getSocketFactory
(org.apache.geode.cache.client.SocketFactory defaultSocketFactory) int
getStatisticInterval
(Integer defaultStatisticInterval) int
getSubscriptionAckInterval
(Integer defaultSubscriptionAckInterval) boolean
getSubscriptionEnabled
(Boolean defaultSubscriptionEnabled) int
getSubscriptionMessageTrackingTimeout
(Integer defaultSubscriptionMessageTrackingTimeout) int
getSubscriptionRedundancy
(Integer defaultSubscriptionRedundancy) int
getSubscriptionTimeoutMultiplier
(Integer defaultSubscriptionTimeoutMultiplier) boolean
protected boolean
protected boolean
protected DefaultableDelegatingPoolAdapter
setPreference
(org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference preference)
-
Constructor Details
-
DefaultableDelegatingPoolAdapter
protected DefaultableDelegatingPoolAdapter(org.apache.geode.cache.client.Pool delegate)
-
-
Method Details
-
from
-
getDelegate
protected org.apache.geode.cache.client.Pool getDelegate() -
setPreference
protected DefaultableDelegatingPoolAdapter setPreference(org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference preference) -
getPreference
protected org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference getPreference() -
defaultIfNull
-
defaultIfEmpty
-
preferDefault
-
prefersDefault
protected boolean prefersDefault() -
preferPool
-
prefersPool
protected boolean prefersPool() -
isDestroyed
public boolean isDestroyed() -
getFreeConnectionTimeout
-
getIdleTimeout
-
getLoadConditioningInterval
-
getLocators
-
getMaxConnections
-
getMinConnections
-
getMultiuserAuthentication
-
getName
-
getPendingEventCount
public int getPendingEventCount() -
getPingInterval
-
getPRSingleHopEnabled
-
getQueryService
public org.apache.geode.cache.query.QueryService getQueryService(org.apache.geode.cache.query.QueryService defaultQueryService) -
getReadTimeout
-
getRetryAttempts
-
getServerConnectionTimeout
-
getServerGroup
-
getServers
-
getSocketBufferSize
-
getSocketConnectTimeout
-
getSocketFactory
public org.apache.geode.cache.client.SocketFactory getSocketFactory(org.apache.geode.cache.client.SocketFactory defaultSocketFactory) -
getStatisticInterval
-
getSubscriptionAckInterval
-
getSubscriptionEnabled
-
getSubscriptionMessageTrackingTimeout
-
getSubscriptionRedundancy
-
getSubscriptionTimeoutMultiplier
-
destroy
public void destroy() -
destroy
public void destroy(boolean keepAlive)
-