public class OutputStreamConnection extends AbstractConnection
SENTRY_PROTOCOL_VERSION| Constructor and Description |
|---|
OutputStreamConnection(OutputStream outputStream)
Creates a connection that sends event on an outputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doSend(Event event)
Sends an event to the Sentry server.
|
void |
setMarshaller(Marshaller marshaller) |
addEventSendCallback, getAuthHeader, sendpublic OutputStreamConnection(OutputStream outputStream)
outputStream - stream on which the events are submitted.protected void doSend(Event event) throws ConnectionException
AbstractConnectiondoSend in class AbstractConnectionevent - captured event to add in Sentry.ConnectionException - whenever a temporary exception due to the connection happened.public void close()
throws IOException
IOExceptionpublic void setMarshaller(Marshaller marshaller)
Copyright © 2012–2017. All rights reserved.