public interface ResponseObserver
HoneyClient.addResponseObserver(ResponseObserver)
, this is the interface that will be
notified about the outcome of events being sent through the client.
This can be useful to track in case there is any issues with events being sent, and can be captured by, for instance, simple logging or metrics.
Note that these might be called called either by an internal thread or the thread that originally enqueued the event, and so any heavy processing should be done asynchronously to avoid starvation (e.g. by handing off to a thread/threadpool).
Modifier and Type | Method | Description |
---|---|---|
void |
onClientRejected(ClientRejected clientRejected) |
This method will be notified for any event that has been rejected on the client side.
|
void |
onServerAccepted(ServerAccepted serverAccepted) |
This method will be notified for any event that was accepted on the server side.
|
void |
onServerRejected(ServerRejected serverRejected) |
This method will be notified for any event that was rejected on the server side.
|
void |
onUnknown(Unknown unknown) |
This method will be notified for any event where the outcome is not clear.
|
void onServerAccepted(ServerAccepted serverAccepted)
ServerAccepted
and ServerResponse
for details.serverAccepted
- response.void onServerRejected(ServerRejected serverRejected)
ServerRejected
and ServerResponse
for details.serverRejected
- response.void onClientRejected(ClientRejected clientRejected)
ClientRejected
for details.clientRejected
- response.void onUnknown(Unknown unknown)
unknown
- response.Copyright © 2018 Honeycomb. All rights reserved.