Class ClientListenerResponse
- java.lang.Object
-
- org.apache.ignite.internal.processors.odbc.ClientListenerResponse
-
- Direct Known Subclasses:
ClientNotification,ClientResponse,JdbcResponse,OdbcResponse
public abstract class ClientListenerResponse extends Object
Client listener response.
-
-
Field Summary
Fields Modifier and Type Field Description static intSTATUS_FAILEDCommand failed.static intSTATUS_SUCCESSCommand succeeded.
-
Constructor Summary
Constructors Modifier Constructor Description protectedClientListenerResponse(int status, @Nullable String err)Constructs failed rest response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringerror()protected voiderror(String err)voidonSent()Callback for response sent event.intstatus()protected voidstatus(int status)
-
-
-
Field Detail
-
STATUS_SUCCESS
public static final int STATUS_SUCCESS
Command succeeded.- See Also:
- Constant Field Values
-
STATUS_FAILED
public static final int STATUS_FAILED
Command failed.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClientListenerResponse
protected ClientListenerResponse(int status, @Nullable @Nullable String err)Constructs failed rest response.- Parameters:
status- Response status.err- Error,nullif success istrue.
-
-
Method Detail
-
status
public int status()
- Returns:
- Success flag.
-
status
protected void status(int status)
- Parameters:
status- Status.
-
error
public String error()
- Returns:
- Error.
-
error
protected void error(String err)
- Parameters:
err- Error message.
-
onSent
public void onSent()
Callback for response sent event.
-
-