public abstract class AbstractOptionsForUpdateOrDelete<T extends AbstractOptionsForUpdateOrDelete<T>> extends AbstractOptionsForSelect<T>
| Modifier and Type | Field and Description |
|---|---|
protected Optional<List<info.archinnov.achilles.type.lightweighttransaction.LWTResultListener>> |
lwtResultListeners |
| Constructor and Description |
|---|
AbstractOptionsForUpdateOrDelete() |
| Modifier and Type | Method and Description |
|---|---|
T |
usingTimestamp(long timestamp)
Generate a USING TIMESTAMP ?
|
T |
withLwtResultListener(info.archinnov.achilles.type.lightweighttransaction.LWTResultListener lwtResultListener)
Add a single LWT result listeners.
|
T |
withLwtResultListeners(List<info.archinnov.achilles.type.lightweighttransaction.LWTResultListener> lwtResultListeners)
Add a list of LWT result listeners.
|
getOptions, getThis, isIdempotent, isIdempotent, withConsistencyLevel, withDMLResultsDisplaySize, withFetchSize, withOptionalConsistencyLevel, withOptionalOutgoingPayload, withOptionalPagingState, withOptionalPagingStateString, withOptionalRetryPolicy, withOptionalSerialConsistencyLevel, withOutgoingPayload, withPagingState, withPagingState, withReadTimeoutInMillis, withResultSetAsyncListener, withResultSetAsyncListeners, withRetryPolicy, withRowAsyncListener, withRowAsyncListeners, withSerialConsistencyLevel, withTracing, withTracingpublic T usingTimestamp(long timestamp)
public T withLwtResultListeners(List<info.archinnov.achilles.type.lightweighttransaction.LWTResultListener> lwtResultListeners)
LWTResultListener lwtListener = new LWTResultListener() {
public void onError(LWTResult lwtResult) {
//Get type of LWT operation that fails
LWTResult.Operation operation = lwtResult.operation();
// Print out current values
TypedMap currentValues = lwtResult.currentValues();
currentValues
.entrySet()
.forEach(entry -> System.out.println(String.format("%s = %s",entry.getKey(), entry.getValue())));
}
};
public T withLwtResultListener(info.archinnov.achilles.type.lightweighttransaction.LWTResultListener lwtResultListener)
LWTResultListener lwtListener = new LWTResultListener() {
public void onError(LWTResult lwtResult) {
//Get type of LWT operation that fails
LWTResult.Operation operation = lwtResult.operation();
// Print out current values
TypedMap currentValues = lwtResult.currentValues();
currentValues
.entrySet()
.forEach(entry -> System.out.println(String.format("%s = %s",entry.getKey(), entry.getValue())));
}
};
Copyright © 2012-2021. All Rights Reserved.