public class PlatformTransactions extends PlatformAbstractTarget
| Modifier and Type | Field and Description |
|---|---|
static int |
OP_CACHE_CONFIG_PARAMETERS |
static int |
OP_METRICS |
FALSE, log, platformCtx, TRUE| Constructor and Description |
|---|
PlatformTransactions(PlatformContext platformCtx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
processOutStream(int type,
BinaryRawWriterEx writer)
Process OUT operation.
|
void |
resetMetrics()
Resets transaction metrics.
|
int |
txClose(long id) |
int |
txCommit(long id) |
void |
txCommitAsync(long txId,
long futId)
Commits tx in async mode.
|
int |
txRollback(long id) |
void |
txRollbackAsync(long txId,
long futId)
Rolls back tx in async mode.
|
boolean |
txSetRollbackOnly(long id) |
long |
txStart(int concurrency,
int isolation,
long timeout,
int txSize) |
int |
txState(long id) |
convertException, currentFuture, futureWriter, inObjectStreamOutStream, inStreamOutLong, inStreamOutObject, inStreamOutStream, listenFuture, listenFutureAndGet, listenFutureForOperation, listenFutureForOperationAndGet, outLong, outObject, outStream, platformContext, processInObjectStreamOutStream, processInStreamOutLong, processInStreamOutObject, processInStreamOutStream, processOutLong, processOutObject, throwUnsupportedpublic static final int OP_CACHE_CONFIG_PARAMETERS
public static final int OP_METRICS
public PlatformTransactions(PlatformContext platformCtx)
platformCtx - Context.public long txStart(int concurrency,
int isolation,
long timeout,
int txSize)
concurrency - Concurrency.isolation - Isolation.timeout - TimeouttxSize - Number of entries participating in transaction.public int txCommit(long id)
throws IgniteCheckedException
id - Transaction ID.IgniteCheckedException - In case of error.public int txRollback(long id)
throws IgniteCheckedException
id - Transaction ID.IgniteCheckedException - In case of error.public int txClose(long id)
throws IgniteCheckedException
id - Transaction ID.IgniteCheckedException - In case of error.public int txState(long id)
id - Transaction ID.public boolean txSetRollbackOnly(long id)
id - Transaction ID.True if rollback only flag was set.public void txCommitAsync(long txId,
long futId)
public void txRollbackAsync(long txId,
long futId)
public void resetMetrics()
protected void processOutStream(int type,
BinaryRawWriterEx writer)
throws IgniteCheckedException
processOutStream in class PlatformAbstractTargettype - Type.writer - Binary writer.IgniteCheckedException - In case of exception.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016