org.infinispan.interceptors
Class BatchingInterceptor

java.lang.Object
  extended by org.infinispan.commands.AbstractVisitor
      extended by org.infinispan.interceptors.base.CommandInterceptor
          extended by org.infinispan.interceptors.BatchingInterceptor
All Implemented Interfaces:
Visitor

public class BatchingInterceptor
extends CommandInterceptor

Interceptor that captures batched calls and attaches contexts.

Since:
4.0
Author:
Manik Surtani (manik@jboss.org)

Field Summary
 
Fields inherited from class org.infinispan.interceptors.base.CommandInterceptor
configuration, log, trace
 
Constructor Summary
BatchingInterceptor()
           
 
Method Summary
protected  Object handleDefault(InvocationContext ctx, VisitableCommand command)
          Simply check if there is an ongoing tx.
 
Methods inherited from class org.infinispan.interceptors.base.CommandInterceptor
getNext, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.infinispan.commands.AbstractVisitor
visitClearCommand, visitCollection, visitCommitCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitValuesCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchingInterceptor

public BatchingInterceptor()
Method Detail

handleDefault

protected Object handleDefault(InvocationContext ctx,
                               VisitableCommand command)
                        throws Throwable
Simply check if there is an ongoing tx.

Overrides:
handleDefault in class CommandInterceptor
Parameters:
ctx - invocation context
command - command to invoke
Returns:
return value
Throws:
Throwable - in the event of problems

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.