org.infinispan.interceptors
Class EntryWrappingInterceptor

java.lang.Object
  extended by org.infinispan.commands.AbstractVisitor
      extended by org.infinispan.interceptors.base.CommandInterceptor
          extended by org.infinispan.interceptors.EntryWrappingInterceptor
All Implemented Interfaces:
Visitor
Direct Known Subclasses:
VersionedEntryWrappingInterceptor

public class EntryWrappingInterceptor
extends CommandInterceptor

Interceptor in charge with wrapping entries and add them in caller's context.

Since:
5.1
Author:
Mircea Markus

Field Summary
protected  ClusteringDependentLogic cll
           
protected  DataContainer dataContainer
           
protected  org.infinispan.interceptors.EntryWrappingInterceptor.EntryWrappingVisitor entryWrappingVisitor
           
 
Fields inherited from class org.infinispan.interceptors.base.CommandInterceptor
configuration
 
Constructor Summary
EntryWrappingInterceptor()
           
 
Method Summary
protected  void commitContextEntries(InvocationContext ctx)
           
protected  void commitContextEntry(CacheEntry entry, InvocationContext ctx, boolean skipOwnershipCheck)
           
protected  Log getLog()
           
 void init(EntryFactory entryFactory, DataContainer dataContainer, ClusteringDependentLogic cll, CommandsFactory commandFactory)
           
 Object visitApplyDeltaCommand(InvocationContext ctx, ApplyDeltaCommand command)
           
 Object visitClearCommand(InvocationContext ctx, ClearCommand command)
           
 Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command)
           
 Object visitEvictCommand(InvocationContext ctx, EvictCommand command)
           
 Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command)
           
 Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command)
           
 Object visitInvalidateL1Command(InvocationContext ctx, InvalidateL1Command command)
           
 Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command)
           
 Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command)
           
 Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command)
           
 Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command)
           
 Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command)
           
 
Methods inherited from class org.infinispan.interceptors.base.CommandInterceptor
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
 
Methods inherited from class org.infinispan.commands.AbstractVisitor
visitCollection, visitDistributedExecuteCommand, visitEntrySetCommand, visitKeySetCommand, visitLockControlCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataContainer

protected DataContainer dataContainer

cll

protected ClusteringDependentLogic cll

entryWrappingVisitor

protected final org.infinispan.interceptors.EntryWrappingInterceptor.EntryWrappingVisitor entryWrappingVisitor
Constructor Detail

EntryWrappingInterceptor

public EntryWrappingInterceptor()
Method Detail

getLog

protected Log getLog()
Overrides:
getLog in class CommandInterceptor

init

public void init(EntryFactory entryFactory,
                 DataContainer dataContainer,
                 ClusteringDependentLogic cll,
                 CommandsFactory commandFactory)

visitPrepareCommand

public Object visitPrepareCommand(TxInvocationContext ctx,
                                  PrepareCommand command)
                           throws Throwable
Specified by:
visitPrepareCommand in interface Visitor
Overrides:
visitPrepareCommand in class AbstractVisitor
Throws:
Throwable

visitCommitCommand

public Object visitCommitCommand(TxInvocationContext ctx,
                                 CommitCommand command)
                          throws Throwable
Specified by:
visitCommitCommand in interface Visitor
Overrides:
visitCommitCommand in class AbstractVisitor
Throws:
Throwable

visitGetKeyValueCommand

public final Object visitGetKeyValueCommand(InvocationContext ctx,
                                            GetKeyValueCommand command)
                                     throws Throwable
Specified by:
visitGetKeyValueCommand in interface Visitor
Overrides:
visitGetKeyValueCommand in class AbstractVisitor
Throws:
Throwable

visitInvalidateCommand

public final Object visitInvalidateCommand(InvocationContext ctx,
                                           InvalidateCommand command)
                                    throws Throwable
Specified by:
visitInvalidateCommand in interface Visitor
Overrides:
visitInvalidateCommand in class AbstractVisitor
Throws:
Throwable

visitClearCommand

public final Object visitClearCommand(InvocationContext ctx,
                                      ClearCommand command)
                               throws Throwable
Specified by:
visitClearCommand in interface Visitor
Overrides:
visitClearCommand in class AbstractVisitor
Throws:
Throwable

visitInvalidateL1Command

public Object visitInvalidateL1Command(InvocationContext ctx,
                                       InvalidateL1Command command)
                                throws Throwable
Specified by:
visitInvalidateL1Command in interface Visitor
Overrides:
visitInvalidateL1Command in class AbstractVisitor
Throws:
Throwable

visitPutKeyValueCommand

public final Object visitPutKeyValueCommand(InvocationContext ctx,
                                            PutKeyValueCommand command)
                                     throws Throwable
Specified by:
visitPutKeyValueCommand in interface Visitor
Overrides:
visitPutKeyValueCommand in class AbstractVisitor
Throws:
Throwable

visitApplyDeltaCommand

public Object visitApplyDeltaCommand(InvocationContext ctx,
                                     ApplyDeltaCommand command)
                              throws Throwable
Specified by:
visitApplyDeltaCommand in interface Visitor
Overrides:
visitApplyDeltaCommand in class AbstractVisitor
Throws:
Throwable

visitRemoveCommand

public final Object visitRemoveCommand(InvocationContext ctx,
                                       RemoveCommand command)
                                throws Throwable
Specified by:
visitRemoveCommand in interface Visitor
Overrides:
visitRemoveCommand in class AbstractVisitor
Throws:
Throwable

visitReplaceCommand

public final Object visitReplaceCommand(InvocationContext ctx,
                                        ReplaceCommand command)
                                 throws Throwable
Specified by:
visitReplaceCommand in interface Visitor
Overrides:
visitReplaceCommand in class AbstractVisitor
Throws:
Throwable

visitPutMapCommand

public Object visitPutMapCommand(InvocationContext ctx,
                                 PutMapCommand command)
                          throws Throwable
Specified by:
visitPutMapCommand in interface Visitor
Overrides:
visitPutMapCommand in class AbstractVisitor
Throws:
Throwable

visitEvictCommand

public Object visitEvictCommand(InvocationContext ctx,
                                EvictCommand command)
                         throws Throwable
Specified by:
visitEvictCommand in interface Visitor
Overrides:
visitEvictCommand in class AbstractVisitor
Throws:
Throwable

commitContextEntries

protected void commitContextEntries(InvocationContext ctx)

commitContextEntry

protected void commitContextEntry(CacheEntry entry,
                                  InvocationContext ctx,
                                  boolean skipOwnershipCheck)

-->

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