public class SenderListenerCollection extends java.lang.Object implements SenderListener
| Constructor and Description |
|---|
SenderListenerCollection() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(SenderListener listener) |
java.util.List<SenderListener> |
getListeners() |
void |
onError(com.rollbar.api.payload.Payload payload,
java.lang.Exception error)
This method is called every time there is an error in the process of sending the payloads to
Rollbar or processing the Rollbar response.
|
void |
onResponse(com.rollbar.api.payload.Payload payload,
Response response)
This method is called every time the sender gets a response from Rollbar.
|
public void onResponse(com.rollbar.api.payload.Payload payload,
Response response)
SenderListeneronResponse in interface SenderListenerpayload - the payload sent.response - the response.public void onError(com.rollbar.api.payload.Payload payload,
java.lang.Exception error)
SenderListeneronError in interface SenderListenerpayload - the payload sent.error - the error.public java.util.List<SenderListener> getListeners()
public void addListener(SenderListener listener)