org.exoplatform.social.common
Class LockInterceptor<T extends Invocation>

java.lang.Object
  extended by org.exoplatform.social.common.LockInterceptor<T>
Direct Known Subclasses:
RequestQueueingFilter.SessionLockInterceptor

public abstract class LockInterceptor<T extends Invocation>
extends Object


Nested Class Summary
static class LockInterceptor.InternalLock
           
 
Constructor Summary
LockInterceptor()
           
 
Method Summary
protected  LockInterceptor.InternalLock acquire(Object lockId)
           
protected abstract  Object getLockId(T invocation)
           
 Object invoke(T invocation)
           
protected  void release(LockInterceptor.InternalLock internalLock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockInterceptor

public LockInterceptor()
Method Detail

acquire

protected LockInterceptor.InternalLock acquire(Object lockId)

release

protected void release(LockInterceptor.InternalLock internalLock)

getLockId

protected abstract Object getLockId(T invocation)
                             throws org.gatein.pc.api.invocation.InvocationException
Throws:
org.gatein.pc.api.invocation.InvocationException

invoke

public Object invoke(T invocation)
              throws Exception,
                     org.gatein.pc.api.invocation.InvocationException
Throws:
Exception
org.gatein.pc.api.invocation.InvocationException


Copyright © 2013 eXo Platform SAS. All Rights Reserved.