com.stackify.api.common.http
public class AsyncErrorSender extends Object
| Constructor and Description |
|---|
AsyncErrorSender(StackifyErrorSender errorSender,
int queueMaxSize)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
HttpTransmissionStatus |
flush()
Flushes the queue by sending all errors to Stackify
|
int |
getQueueSize() |
void |
sendError(com.stackify.api.StackifyError error)
Queues error to be sent
|
public AsyncErrorSender(StackifyErrorSender errorSender, int queueMaxSize)
errorSender - The HTTP error senderqueueMaxSize - Queue sizepublic void sendError(com.stackify.api.StackifyError error)
error - The errorpublic int getQueueSize()
public HttpTransmissionStatus flush()
Copyright © 2014 Stackify, LLC. All Rights Reserved.