public class AsyncHttpDelivery extends java.lang.Object implements HttpDelivery
| Constructor and Description |
|---|
AsyncHttpDelivery()
Creates a new instance, which defaults to the https://notify.bugsnag.com endpoint
|
AsyncHttpDelivery(java.lang.String endpoint)
Creates a new instance, which uses a custom endpoint
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any open connections to Bugsnag.
|
void |
deliver(Serializer serializer,
java.lang.Object object,
java.util.Map<java.lang.String,java.lang.String> headers)
Deliver the object using the serializer.
|
void |
setBaseDelivery(HttpDelivery baseDelivery) |
void |
setEndpoint(java.lang.String endpoint)
Set the HTTP endpoint to deliver to.
|
void |
setExecutorService(java.util.concurrent.ExecutorService executorService) |
void |
setProxy(java.net.Proxy proxy)
The proxy to use.
|
void |
setTimeout(int timeout)
The timeout to use.
|
public AsyncHttpDelivery()
public AsyncHttpDelivery(java.lang.String endpoint)
public void setEndpoint(java.lang.String endpoint)
HttpDeliverysetEndpoint in interface HttpDeliveryendpoint - the endpoint, for example https://notify.bugsnag.compublic void setProxy(java.net.Proxy proxy)
HttpDeliverysetProxy in interface HttpDeliveryproxy - the proxy for the delivery attempt.public void setTimeout(int timeout)
HttpDeliverysetTimeout in interface HttpDeliverytimeout - the timeout for a delivery attempt.public void setBaseDelivery(HttpDelivery baseDelivery)
public void setExecutorService(java.util.concurrent.ExecutorService executorService)
public void deliver(Serializer serializer, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> headers)
Delivery