public class L1WriteSynchronizer extends Object
Constructor and Description |
---|
L1WriteSynchronizer(DataContainer dc,
long l1Lifespan,
StateTransferLock stateTransferLock,
ClusteringDependentLogic cdl) |
Modifier and Type | Method and Description |
---|---|
Object |
get() |
Object |
get(long time,
TimeUnit unit) |
void |
retrievalEncounteredException(Throwable t) |
void |
runL1UpdateIfPossible(InternalCacheEntry ice)
Attempts to the L1 update and set the value.
|
boolean |
trySkipL1Update()
Attempts to mark the L1 update to only retrieve the value and not to actually update the L1 cache.
|
public L1WriteSynchronizer(DataContainer dc, long l1Lifespan, StateTransferLock stateTransferLock, ClusteringDependentLogic cdl)
public Object get() throws InterruptedException, ExecutionException
public Object get(long time, TimeUnit unit) throws TimeoutException, InterruptedException, ExecutionException
public boolean trySkipL1Update()
public void retrievalEncounteredException(Throwable t)
public void runL1UpdateIfPossible(InternalCacheEntry ice)
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.