public abstract class DefaultableDelegatingPoolAdapter extends Object
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.Pool
Modifier | Constructor and Description |
---|---|
protected |
DefaultableDelegatingPoolAdapter(org.apache.geode.cache.client.Pool delegate) |
Modifier and Type | Method and Description |
---|---|
protected <E,T extends Collection<E>> |
defaultIfEmpty(T defaultValue,
Supplier<T> valueProvider) |
protected <T> T |
defaultIfNull(T defaultValue,
Supplier<T> valueProvider) |
void |
destroy() |
void |
destroy(boolean keepAlive) |
static DefaultableDelegatingPoolAdapter |
from(org.apache.geode.cache.client.Pool delegate) |
protected org.apache.geode.cache.client.Pool |
getDelegate() |
int |
getFreeConnectionTimeout(Integer defaultFreeConnectionTimeout) |
long |
getIdleTimeout(Long defaultIdleTimeout) |
int |
getLoadConditioningInterval(Integer defaultLoadConditioningInterval) |
List<InetSocketAddress> |
getLocators(List<InetSocketAddress> defaultLocators) |
int |
getMaxConnections(Integer defaultMaxConnections) |
int |
getMinConnections(Integer defaultMinConnections) |
boolean |
getMultiuserAuthentication(Boolean defaultMultiUserAuthentication) |
String |
getName() |
int |
getPendingEventCount() |
long |
getPingInterval(Long defaultPingInterval) |
protected org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference |
getPreference() |
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) |
String |
getServerGroup(String defaultServerGroup) |
List<InetSocketAddress> |
getServers(List<InetSocketAddress> defaultServers) |
int |
getSocketBufferSize(Integer defaultSocketBufferSize) |
int |
getSocketConnectTimeout(Integer defaultSocketConnectTimeout) |
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 |
getThreadLocalConnections(Boolean defaultThreadLocalConnections) |
boolean |
isDestroyed() |
DefaultableDelegatingPoolAdapter |
preferDefault() |
DefaultableDelegatingPoolAdapter |
preferPool() |
protected boolean |
prefersDefault() |
protected boolean |
prefersPool() |
void |
releaseThreadLocalConnection() |
protected DefaultableDelegatingPoolAdapter |
setPreference(org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference preference) |
protected DefaultableDelegatingPoolAdapter(org.apache.geode.cache.client.Pool delegate)
public static DefaultableDelegatingPoolAdapter from(org.apache.geode.cache.client.Pool delegate)
protected org.apache.geode.cache.client.Pool getDelegate()
protected DefaultableDelegatingPoolAdapter setPreference(org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference preference)
protected org.springframework.data.gemfire.client.support.DefaultableDelegatingPoolAdapter.Preference getPreference()
protected <T> T defaultIfNull(T defaultValue, Supplier<T> valueProvider)
protected <E,T extends Collection<E>> T defaultIfEmpty(T defaultValue, Supplier<T> valueProvider)
public DefaultableDelegatingPoolAdapter preferDefault()
protected boolean prefersDefault()
public DefaultableDelegatingPoolAdapter preferPool()
protected boolean prefersPool()
public boolean isDestroyed()
public int getFreeConnectionTimeout(Integer defaultFreeConnectionTimeout)
public long getIdleTimeout(Long defaultIdleTimeout)
public int getLoadConditioningInterval(Integer defaultLoadConditioningInterval)
public List<InetSocketAddress> getLocators(List<InetSocketAddress> defaultLocators)
public int getMaxConnections(Integer defaultMaxConnections)
public int getMinConnections(Integer defaultMinConnections)
public boolean getMultiuserAuthentication(Boolean defaultMultiUserAuthentication)
public String getName()
public int getPendingEventCount()
public long getPingInterval(Long defaultPingInterval)
public boolean getPRSingleHopEnabled(Boolean defaultPrSingleHopEnabled)
public org.apache.geode.cache.query.QueryService getQueryService(org.apache.geode.cache.query.QueryService defaultQueryService)
public int getReadTimeout(Integer defaultReadTimeout)
public int getRetryAttempts(Integer defaultRetryAttempts)
public List<InetSocketAddress> getServers(List<InetSocketAddress> defaultServers)
public int getSocketBufferSize(Integer defaultSocketBufferSize)
public int getSocketConnectTimeout(Integer defaultSocketConnectTimeout)
public int getStatisticInterval(Integer defaultStatisticInterval)
public int getSubscriptionAckInterval(Integer defaultSubscriptionAckInterval)
public boolean getSubscriptionEnabled(Boolean defaultSubscriptionEnabled)
public int getSubscriptionMessageTrackingTimeout(Integer defaultSubscriptionMessageTrackingTimeout)
public int getSubscriptionRedundancy(Integer defaultSubscriptionRedundancy)
public int getSubscriptionTimeoutMultiplier(Integer defaultSubscriptionTimeoutMultiplier)
public boolean getThreadLocalConnections(Boolean defaultThreadLocalConnections)
public void destroy()
public void destroy(boolean keepAlive)
public void releaseThreadLocalConnection()
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.