public interface SenderFailureStrategy
extends java.io.Closeable
A SenderFailureStrategy determines the action to take when a payload cannot be sent, for example to suspend the sending of occurrences while the network is down.
| Modifier and Type | Interface and Description |
|---|---|
static class |
SenderFailureStrategy.PayloadAction |
| Modifier and Type | Method and Description |
|---|---|
SenderFailureStrategy.PayloadAction |
getAction(com.rollbar.api.payload.Payload payload,
java.lang.Exception error)
Get the action to perform after the error.
|
SenderFailureStrategy.PayloadAction |
getAction(com.rollbar.api.payload.Payload payload,
Response response)
Get the action to perform after the payload has been sent.
|
boolean |
isSendingSuspended()
Is sending of occurrences currently suspended.
|
SenderFailureStrategy.PayloadAction getAction(com.rollbar.api.payload.Payload payload, Response response)
payload - The payload that was sentresponse - The server's responseSenderFailureStrategy.PayloadAction getAction(com.rollbar.api.payload.Payload payload, java.lang.Exception error)
payload - The payload that the sender attempted to senderror - The error that occurredboolean isSendingSuspended()