storm.trident.topology.state
Class RotatingTransactionalState
java.lang.Object
storm.trident.topology.state.RotatingTransactionalState
public class RotatingTransactionalState
- extends Object
| 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)
getLastState
public Object getLastState()
overrideState
public void overrideState(long txid,
Object state)
removeState
public void removeState(long txid)
getState
public Object getState(long txid)
getState
public Object getState(long txid,
RotatingTransactionalState.StateInitializer init)
getPreviousState
public Object getPreviousState(long txid)
hasCache
public boolean hasCache(long txid)
getStateOrCreate
public Object getStateOrCreate(long txid,
RotatingTransactionalState.StateInitializer init)
- Returns null if it was created, the value otherwise.
cleanupBefore
public void cleanupBefore(long txid)
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.