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, setChannel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public GelfUDPSender(String host, int port, ErrorReporter errorReporter) throws IOException
IOException
public boolean sendMessage(GelfMessage message)
GelfSender
sendMessage
in interface GelfSender
message
- the messageprotected void connect() throws IOException
IOException
protected boolean isConnected(DatagramChannel channel)
isConnected
in class AbstractNioSender<DatagramChannel>
Copyright © 2013–2023. All rights reserved.