public class StandardBaseTransactionConfig extends Object implements BaseTransactionConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
StandardBaseTransactionConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
java.time.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
BaseTransactionConfig.getGroupName() is non-null, false when null. |
static StandardBaseTransactionConfig |
of(TimestampProvider times) |
static StandardBaseTransactionConfig |
of(TimestampProvider times,
Configuration customOptions) |
void |
setCommitTime(java.time.Instant time)
Sets the commit time of this transaction.
|
public java.time.Instant getCommitTime()
BaseTransactionConfiggetCommitTime in interface BaseTransactionConfigpublic void setCommitTime(java.time.Instant time)
BaseTransactionConfigBaseTransactionConfig.hasCommitTime() to check prior to setting.setCommitTime in interface BaseTransactionConfigpublic boolean hasCommitTime()
BaseTransactionConfighasCommitTime in interface BaseTransactionConfigpublic TimestampProvider getTimestampProvider()
BaseTransactionConfiggetTimestampProvider in interface BaseTransactionConfigpublic boolean hasGroupName()
BaseTransactionConfigBaseTransactionConfig.getGroupName() is non-null, false when null.hasGroupName in interface BaseTransactionConfigpublic String getGroupName()
BaseTransactionConfiggetGroupName in interface BaseTransactionConfigpublic <V> V getCustomOption(ConfigOption<V> opt)
BaseTransactionConfiggetCustomOption in interface BaseTransactionConfigopt - option for which to return a valuepublic Configuration getCustomOptions()
BaseTransactionConfiggetCustomOptions in interface BaseTransactionConfigBaseTransactionConfig.getCustomOption(ConfigOption)public static StandardBaseTransactionConfig of(TimestampProvider times)
public static StandardBaseTransactionConfig of(TimestampProvider times, Configuration customOptions)
Copyright © 2012–2015. All rights reserved.