org.infinispan.transaction
Class WriteSkewHelper

java.lang.Object
  extended by org.infinispan.transaction.WriteSkewHelper

public class WriteSkewHelper
extends Object

Encapsulates write skew logic in maintaining version maps, etc.

Since:
5.1
Author:
Manik Surtani

Nested Class Summary
static interface WriteSkewHelper.KeySpecificLogic
           
 
Constructor Summary
WriteSkewHelper()
           
 
Method Summary
static EntryVersionsMap performWriteSkewCheckAndReturnNewVersions(VersionedPrepareCommand prepareCommand, DataContainer dataContainer, VersionGenerator versionGenerator, TxInvocationContext context, WriteSkewHelper.KeySpecificLogic ksl)
           
static void readVersionsFromResponse(Response r, CacheTransaction ct)
           
static void setVersionsSeenOnPrepareCommand(VersionedPrepareCommand command, TxInvocationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteSkewHelper

public WriteSkewHelper()
Method Detail

setVersionsSeenOnPrepareCommand

public static void setVersionsSeenOnPrepareCommand(VersionedPrepareCommand command,
                                                   TxInvocationContext context)

readVersionsFromResponse

public static void readVersionsFromResponse(Response r,
                                            CacheTransaction ct)

performWriteSkewCheckAndReturnNewVersions

public static EntryVersionsMap performWriteSkewCheckAndReturnNewVersions(VersionedPrepareCommand prepareCommand,
                                                                         DataContainer dataContainer,
                                                                         VersionGenerator versionGenerator,
                                                                         TxInvocationContext context,
                                                                         WriteSkewHelper.KeySpecificLogic ksl)

-->

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