Class RotatingTransactionalState

java.lang.Object
org.apache.storm.trident.topology.state.RotatingTransactionalState

public class RotatingTransactionalState extends Object
  • Constructor Details

  • Method Details

    • 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)
    • toString

      public String toString()
      Overrides:
      toString in class Object