Class RaygunOnFailedSendOfflineStorageHandler
- java.lang.Object
-
- com.mindscapehq.raygun4java.core.handlers.offlinesupport.RaygunOnFailedSendOfflineStorageHandler
-
- All Implemented Interfaces:
IRaygunOnBeforeSend,IRaygunOnFailedSend,IRaygunSendEventFactory,IRaygunSentEvent
public class RaygunOnFailedSendOfflineStorageHandler extends Object implements IRaygunOnFailedSend, IRaygunOnBeforeSend, IRaygunSendEventFactory
When a send failure occurs, this class attempts to write the payload to disk When a send success occurs, it resends any stored payloads on a new thread
-
-
Constructor Summary
Constructors Constructor Description RaygunOnFailedSendOfflineStorageHandler(String storageDir, String apiKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRaygunOnBeforeSendcreate()RaygunMessageonBeforeSend(RaygunClient client, RaygunMessage message)StringonFailedSend(RaygunClient client, String jsonPayload)voidsetEnabled(boolean enabled)
-
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
-
onBeforeSend
public RaygunMessage onBeforeSend(RaygunClient client, RaygunMessage message)
- Specified by:
onBeforeSendin interfaceIRaygunOnBeforeSend
-
onFailedSend
public String onFailedSend(RaygunClient client, String jsonPayload)
- Specified by:
onFailedSendin interfaceIRaygunOnFailedSend
-
create
public IRaygunOnBeforeSend create()
- Specified by:
createin interfaceIRaygunSendEventFactory
-
-