public class UdpConnection extends AbstractConnection
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_UDP_PORT
Default UDP port for a Sentry instance.
|
DEFAULT_BASE_WAITING_TIME, DEFAULT_MAX_WAITING_TIME, SENTRY_PROTOCOL_VERSION| Constructor and Description |
|---|
UdpConnection(String hostname,
int port,
String publicKey,
String secretKey)
Creates an UDP connection to a Sentry server.
|
UdpConnection(String hostname,
String publicKey,
String secretKey)
Creates an UDP connection to a Sentry server.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doSend(Event event)
Sends an event to the sentry server.
|
void |
setMarshaller(Marshaller marshaller) |
getAuthHeader, send, setBaseWaitingTime, setMaxWaitingTimepublic static final int DEFAULT_UDP_PORT
public UdpConnection(String hostname, String publicKey, String secretKey)
hostname - hostname of the Sentry server.publicKey - public key of the current project.secretKey - private key of the current project.public UdpConnection(String hostname, int port, String publicKey, String secretKey)
hostname - hostname of the Sentry server.port - Port on which the Sentry server listens.publicKey - public key of the current project.secretKey - private key of the current project.protected void doSend(Event event)
AbstractConnectiondoSend in class AbstractConnectionevent - captured event to add in Sentry.public void setMarshaller(Marshaller marshaller)
public void close()
throws IOException
IOExceptionCopyright © 2012–2014. All rights reserved.