backtype.storm.transactional.state
Class RotatingTransactionalState
java.lang.Object
backtype.storm.transactional.state.RotatingTransactionalState
public class RotatingTransactionalState
- extends Object
A map from txid to a value. Automatically deletes txids that have been committed.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RotatingTransactionalState
public RotatingTransactionalState(TransactionalState state,
String subdir,
boolean strictOrder)
RotatingTransactionalState
public RotatingTransactionalState(TransactionalState state,
String subdir)
getLastState
public Object getLastState()
overrideState
public void overrideState(BigInteger txid,
Object state)
removeState
public void removeState(BigInteger txid)
getState
public Object getState(BigInteger txid,
RotatingTransactionalState.StateInitializer init)
hasCache
public boolean hasCache(BigInteger txid)
getStateOrCreate
public Object getStateOrCreate(BigInteger txid,
RotatingTransactionalState.StateInitializer init)
- Returns null if it was created, the value otherwise.
cleanupBefore
public void cleanupBefore(BigInteger txid)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.