public class TxLog extends Object implements CheckpointListener
CheckpointListener.Context
Modifier and Type | Field and Description |
---|---|
static int |
TX_LOG_CACHE_ID |
static String |
TX_LOG_CACHE_NAME |
Constructor and Description |
---|
TxLog(GridKernalContext ctx,
IgniteCacheDatabaseSharedManager mgr) |
Modifier and Type | Method and Description |
---|---|
void |
beforeCheckpointBegin(CheckpointListener.Context ctx)
Do some actions before checkpoint write lock.
|
byte |
get(long major,
long minor) |
byte |
get(TxKey key) |
void |
onCheckpointBegin(CheckpointListener.Context ctx) |
void |
onMarkCheckpointBegin(CheckpointListener.Context ctx) |
void |
put(TxKey key,
byte state,
boolean primary) |
void |
removeUntil(long major,
long minor)
Removes all records less or equals to the given version.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterCheckpointEnd
public static final String TX_LOG_CACHE_NAME
public static final int TX_LOG_CACHE_ID
public TxLog(GridKernalContext ctx, IgniteCacheDatabaseSharedManager mgr) throws IgniteCheckedException
ctx
- Kernal context.mgr
- Database shared manager.IgniteCheckedException
public void onMarkCheckpointBegin(CheckpointListener.Context ctx) throws IgniteCheckedException
onMarkCheckpointBegin
in interface CheckpointListener
IgniteCheckedException
- If failed.public void beforeCheckpointBegin(CheckpointListener.Context ctx) throws IgniteCheckedException
beforeCheckpointBegin
in interface CheckpointListener
IgniteCheckedException
- If failed.public void onCheckpointBegin(CheckpointListener.Context ctx) throws IgniteCheckedException
onCheckpointBegin
in interface CheckpointListener
IgniteCheckedException
- If failed.public byte get(long major, long minor) throws IgniteCheckedException
major
- Major version.minor
- Minor version.IgniteCheckedException
- If failed.public byte get(TxKey key) throws IgniteCheckedException
key
- Transaction key.IgniteCheckedException
- If failed.public void put(TxKey key, byte state, boolean primary) throws IgniteCheckedException
key
- TxKey.state
- Transaction state for given version.primary
- Flag if this is a primary node.IgniteCheckedException
- If failed.public void removeUntil(long major, long minor) throws IgniteCheckedException
major
- Major version.minor
- Minor version.IgniteCheckedException
- If failed.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021