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 |
|---|---|
byte |
get(long major,
long minor) |
byte |
get(TxKey key) |
void |
onCheckpointBegin(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 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.7.5 Release Date : June 4 2019