public interface BrokerCommandCallback
onResponse(java.util.Map<java.lang.String, java.lang.Object>)
when command's response arrives
or there was an issue during invocation so onFailure(java.util.Map<java.lang.String, java.lang.Object>)
is
run.Modifier and Type | Method and Description |
---|---|
void |
onFailure(Map<String,Object> response)
Whenever any issue occurs during command invocation it
will be passed here as an instance of
Throwable . |
void |
onResponse(Map<String,Object> response)
When a command response arrive this method is invoked and it
should contain continuation logic for the command.
|
void onResponse(Map<String,Object> response)
response
- - Map containing response where we optionally
provide status key. It is provided when an
an issue occurred on the server side.void onFailure(Map<String,Object> response)
Throwable
.response
- - Map containing error response where we
optionally provide status key. It is provided
when an issue occurred on the server side.Copyright © 2018. All rights reserved.