public class GelfUDPSender extends AbstractNioSender<DatagramChannel> implements GelfSender
INITIAL_BUFFER_SIZE, PROPERTY_BUFFER_SIZE| Constructor and Description |
|---|
GelfUDPSender(String host,
int port,
ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
connect() |
protected boolean |
isConnected(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(String host, int port, ErrorReporter errorReporter) throws IOException
IOExceptionpublic boolean sendMessage(GelfMessage message)
GelfSendersendMessage in interface GelfSendermessage - the messageprotected void connect()
throws IOException
IOExceptionprotected boolean isConnected(DatagramChannel channel)
isConnected in class AbstractNioSender<DatagramChannel>Copyright © 2013–2023. All rights reserved.