public interface GelfTransport
| Modifier and Type | Method and Description |
|---|---|
void |
flushAndStopSynchronously(int waitDuration,
TimeUnit timeUnit,
int retries)
Blocks and stops the transport after flushing/sending all enqueued messages.
|
void |
send(GelfMessage message)
Sends the given message to the remote host.
|
void |
stop()
Stops the transport.
|
boolean |
trySend(GelfMessage message)
Tries to send the given message to the remote host.
|
void send(GelfMessage message) throws InterruptedException
message - message to send to the remote hostInterruptedExceptionboolean trySend(GelfMessage message)
message - message to send to the remote hostvoid stop()
void flushAndStopSynchronously(int waitDuration,
TimeUnit timeUnit,
int retries)
waitDuration, timeUnit
and retries have elapsed.
Each retry waits for the indicated waitDuration and timeUnit again.
This can be used to gracefully shutdown the backend.waitDuration - the wait duration.timeUnit - the time unit for the waitDuration.retries - the number of times to retry and wait for messages to flush. Zero retries indicates that
one initial attempt will be made.Copyright © 2014–2021 Graylog, Inc.. All rights reserved.