public class RotatingTransactionalState extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RotatingTransactionalState.StateInitializer |
Constructor and Description |
---|
RotatingTransactionalState(TransactionalState state,
String subdir) |
Modifier and Type | Method and Description |
---|---|
void |
cleanupBefore(long txid) |
Object |
getLastState() |
Object |
getPreviousState(long txid) |
Object |
getState(long txid) |
Object |
getState(long txid,
RotatingTransactionalState.StateInitializer init) |
Object |
getStateOrCreate(long txid,
RotatingTransactionalState.StateInitializer init)
Returns null if it was created, the value otherwise.
|
boolean |
hasCache(long txid) |
void |
overrideState(long txid,
Object state) |
void |
removeState(long txid) |
String |
toString() |
public RotatingTransactionalState(TransactionalState state, String subdir)
public Object getLastState()
public void overrideState(long txid, Object state)
public void removeState(long txid)
public Object getState(long txid)
public Object getState(long txid, RotatingTransactionalState.StateInitializer init)
public Object getPreviousState(long txid)
public boolean hasCache(long txid)
public Object getStateOrCreate(long txid, RotatingTransactionalState.StateInitializer init)
public void cleanupBefore(long txid)
Copyright © 2023 The Apache Software Foundation. All rights reserved.