public class TxLog extends Object implements DbCheckpointListener
DbCheckpointListener.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(DbCheckpointListener.Context ctx)
Do some actions before checkpoint write lock.
|
byte |
get(long major,
long minor) |
byte |
get(TxKey key) |
void |
onCheckpointBegin(DbCheckpointListener.Context ctx) |
void |
onMarkCheckpointBegin(DbCheckpointListener.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.
|
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.IgniteCheckedExceptionpublic void onMarkCheckpointBegin(DbCheckpointListener.Context ctx) throws IgniteCheckedException
onMarkCheckpointBegin in interface DbCheckpointListenerIgniteCheckedException - If failed.public void beforeCheckpointBegin(DbCheckpointListener.Context ctx) throws IgniteCheckedException
beforeCheckpointBegin in interface DbCheckpointListenerIgniteCheckedException - If failed.public void onCheckpointBegin(DbCheckpointListener.Context ctx) throws IgniteCheckedException
onCheckpointBegin in interface DbCheckpointListenerIgniteCheckedException - 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.8.0 Release Date : February 27 2020