public class HaLockInterceptor extends Object implements org.aopalliance.intercept.MethodInterceptor
Constructor and Description |
---|
HaLockInterceptor() |
Modifier and Type | Method and Description |
---|---|
IHaLockManager |
getHaLockManager() |
String |
getThreadLocalKey() |
Object |
invoke(org.aopalliance.intercept.MethodInvocation invocation) |
void |
setHaLockManager(IHaLockManager haLockManager) |
void |
setThreadLocalKey(String threadLocalKey) |
public Object invoke(org.aopalliance.intercept.MethodInvocation invocation) throws Throwable
invoke
in interface org.aopalliance.intercept.MethodInterceptor
Throwable
public IHaLockManager getHaLockManager()
public void setHaLockManager(IHaLockManager haLockManager)
haLockManager
- The lock manager to use for locking.public String getThreadLocalKey()
ThreadLocalManager.bindResource(String, Object)
public void setThreadLocalKey(String threadLocalKey)
threadLocalKey
- The key under which the lock will be bound
to the current thread by
ThreadLocalManager.bindResource(String, Object)
to configure.Copyright © 2017 Clazzes.org. All rights reserved.