public interface BaseTransactionConfig
Modifier and Type | Method and Description |
---|---|
Instant |
getCommitTime()
Returns the commit time of this transaction which is either a custom timestamp provided
by the user, the commit time as set by the enclosing operation, or the first time this method is called.
|
<V> V |
getCustomOption(ConfigOption<V> opt)
Get an arbitrary transaction-specific option.
|
Configuration |
getCustomOptions()
Return any transaction-specific options.
|
String |
getGroupName()
Returns the (possibly null) group name for this transaction.
|
TimestampProvider |
getTimestampProvider()
Returns the timestamp provider of this transaction.
|
boolean |
hasCommitTime()
Returns true if a commit time has been set on this transaction.
|
boolean |
hasGroupName()
True when
getGroupName() is non-null, false when null. |
void |
setCommitTime(Instant time)
Sets the commit time of this transaction.
|
Instant getCommitTime()
void setCommitTime(Instant time)
hasCommitTime()
to check prior to setting.time
- boolean hasCommitTime()
TimestampProvider getTimestampProvider()
String getGroupName()
boolean hasGroupName()
getGroupName()
is non-null, false when null.<V> V getCustomOption(ConfigOption<V> opt)
opt
- option for which to return a valueConfiguration getCustomOptions()
getCustomOption(ConfigOption)
Copyright © 2012–2023. All rights reserved.