public abstract class ClientListenerResponse extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_FAILED
Command failed.
|
static int |
STATUS_SUCCESS
Command succeeded.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ClientListenerResponse(int status,
@Nullable String err)
Constructs failed rest response.
|
| Modifier and Type | Method and Description |
|---|---|
String |
error() |
void |
error(String err) |
void |
onSent()
Callback for response sent event.
|
int |
status() |
void |
status(int status) |
public static final int STATUS_SUCCESS
public static final int STATUS_FAILED
protected ClientListenerResponse(int status,
@Nullable
@Nullable String err)
status - Response status.err - Error, null if success is true.public int status()
public void status(int status)
status - Status.public String error()
public void error(String err)
err - Error message.public void onSent()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020