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, send
public OutputStreamConnection(OutputStream outputStream)
outputStream
- stream on which the events are submitted.protected void doSend(Event event) throws ConnectionException
AbstractConnection
doSend
in class AbstractConnection
event
- captured event to add in Sentry.ConnectionException
- whenever a temporary exception due to the connection happened.public void close() throws IOException
IOException
public void setMarshaller(Marshaller marshaller)
Copyright © 2012–2018. All rights reserved.