public class RemoteQueryCachePlugin extends AbstractConnectionPlugin implements StateSnapshotProvider
| Constructor and Description |
|---|
RemoteQueryCachePlugin(FullServicesContainer servicesContainer,
java.util.Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends java.lang.Exception> |
execute(java.lang.Class<T> resultClass,
java.lang.Class<E> exceptionClass,
java.lang.Object methodInvokeOn,
java.lang.String methodName,
JdbcCallable<T,E> jdbcMethodFunc,
@Nullable java.lang.Object[] jdbcMethodArgs) |
protected @Nullable java.lang.String |
getQuery(java.lang.Object methodInvokeOn,
@Nullable java.lang.Object[] jdbcMethodArgs) |
java.util.List<Pair<java.lang.String,java.lang.Object>> |
getSnapshotState() |
java.util.Set<java.lang.String> |
getSubscribedMethods() |
protected @Nullable java.lang.Integer |
getTtlForQuery(@Nullable java.lang.String queryHint)
Determine the TTL based on an input query.
|
protected void |
setCacheConnection(CacheConnection conn) |
acceptsStrategy, connect, forceConnect, getHostSpecByStrategy, getHostSpecByStrategy, initHostProvider, notifyConnectionChanged, notifyNodeListChangedpublic RemoteQueryCachePlugin(FullServicesContainer servicesContainer, java.util.Properties properties)
protected void setCacheConnection(CacheConnection conn)
public java.util.Set<java.lang.String> getSubscribedMethods()
getSubscribedMethods in interface ConnectionPlugingetSubscribedMethods in class AbstractConnectionPluginprotected @Nullable java.lang.Integer getTtlForQuery(@Nullable java.lang.String queryHint)
queryHint - string. e.g. "CACHE_PARAM(ttl=100s, key=custom)"public <T,E extends java.lang.Exception> T execute(java.lang.Class<T> resultClass,
java.lang.Class<E> exceptionClass,
java.lang.Object methodInvokeOn,
java.lang.String methodName,
JdbcCallable<T,E> jdbcMethodFunc,
@Nullable java.lang.Object[] jdbcMethodArgs)
throws E extends java.lang.Exception
execute in interface ConnectionPluginexecute in class AbstractConnectionPluginE extends java.lang.Exceptionprotected @Nullable java.lang.String getQuery(java.lang.Object methodInvokeOn,
@Nullable java.lang.Object[] jdbcMethodArgs)
public java.util.List<Pair<java.lang.String,java.lang.Object>> getSnapshotState()
getSnapshotState in interface StateSnapshotProvidergetSnapshotState in class AbstractConnectionPlugin