D
- public class CommonDataSourceInvocationHandler<D> extends AbstractRootInvocationHandler<D>
AbstractInvocationHandler.SimpleInvoker
cluster, logger
Modifier | Constructor and Description |
---|---|
protected |
CommonDataSourceInvocationHandler(DatabaseCluster<D> databaseCluster,
java.lang.Class<D> proxyClass) |
Modifier and Type | Method and Description |
---|---|
protected InvocationStrategy<D,D,?> |
getInvocationStrategy(D object,
java.lang.reflect.Method method,
java.lang.Object[] parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected boolean |
isRecordable(java.lang.reflect.Method method) |
close, createObject, getRoot
addChild, detectClusterPanic, entries, entry, getDatabaseCluster, getInvoker, getObject, handleFailure, handleFailures, handlePartialFailure, invoke, isSQLMethod, postInvoke, record, removeChild, removeChildren, replay, retain
protected CommonDataSourceInvocationHandler(DatabaseCluster<D> databaseCluster, java.lang.Class<D> proxyClass)
databaseCluster
- proxyClass
- protected InvocationStrategy<D,D,?> getInvocationStrategy(D object, java.lang.reflect.Method method, java.lang.Object[] parameters) throws java.lang.Exception
AbstractInvocationHandler
InvocationStrategy
for the specified method.
This implementation detects Wrapper
methods; and Object.equals(java.lang.Object)
, Object.hashCode()
, and Object.toString()
.
Default invocation strategy is DatabaseWriteInvocationStrategy
.getInvocationStrategy
in class AbstractInvocationHandler<D,D>
object
- the proxied objectmethod
- the method to invokeparameters
- the method invocation parametersjava.lang.Exception
protected boolean isRecordable(java.lang.reflect.Method method)
isRecordable
in class AbstractInvocationHandler<D,D>
AbstractInvocationHandler.isRecordable(java.lang.reflect.Method)