public class TxnIdFactory extends Object
TxnId.
This is ony some possible TxnIdGeneratorTxnId| Modifier and Type | Field and Description |
|---|---|
static TxnIdGenerator |
txnIdGenSimple
Generator for
TxnIds for the counter based implementation. |
static TxnIdGenerator |
txnIdGenUuid
Generator for
TxnIds for the UUID based implementation. |
| Constructor and Description |
|---|
TxnIdFactory() |
| Modifier and Type | Method and Description |
|---|---|
static TxnId |
create()
Return the default, good enough for one JVM
(usually the simple counter based implementation)
|
static TxnId |
create(byte[] bytes) |
static TxnId |
createSimple()
Return a TxnId from the counter based implementation.
|
static TxnId |
createUuid()
Return a TxnId from the UUID based implementation.
|
public static final TxnIdGenerator txnIdGenSimple
TxnIds for the counter based implementation.public static final TxnIdGenerator txnIdGenUuid
TxnIds for the UUID based implementation.public static TxnId create()
public static TxnId createSimple()
public static TxnId createUuid()
public static TxnId create(byte[] bytes)
Licensed under the Apache License, Version 2.0