public interface LWTResultListener
LWTResultListener.LWTResult
class
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())));
}
};
manager
.dsl()
.update()
.fromBaseTable()
.firstname_Set("new firstname")
.where()
.login_Eq("jdoe")
.ifFirstname_Eq("old firstname")
.withLwtResultListener(lwtListener)
.execute();
| Modifier and Type | Interface and Description |
|---|---|
static class |
LWTResultListener.LWTResult
POJO class keeping information on a LWT operation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onError(LWTResultListener.LWTResult lwtResult) |
default void |
onSuccess() |
default void onSuccess()
void onError(LWTResultListener.LWTResult lwtResult)
Copyright © 2012-2021. All Rights Reserved.