public class GelfUDPSender extends AbstractNioSender<java.nio.channels.DatagramChannel> implements GelfSender
INITIAL_BUFFER_SIZE, PROPERTY_BUFFER_SIZE| Constructor and Description |
|---|
GelfUDPSender(java.lang.String host,
int port,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
connect() |
protected boolean |
isConnected(java.nio.channels.DatagramChannel channel) |
boolean |
sendMessage(GelfMessage message)
Send the Gelf message.
|
channel, close, getHost, getPort, isConnected, isShutdown, reportError, setChannelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic GelfUDPSender(java.lang.String host,
int port,
ErrorReporter errorReporter)
throws java.io.IOException
java.io.IOExceptionpublic boolean sendMessage(GelfMessage message)
GelfSendersendMessage in interface GelfSendermessage - the messageprotected void connect()
throws java.io.IOException
java.io.IOExceptionprotected boolean isConnected(java.nio.channels.DatagramChannel channel)
isConnected in class AbstractNioSender<java.nio.channels.DatagramChannel>Copyright © 2013-2022. All Rights Reserved.