public class GelfREDISSender<T> extends Object implements GelfSender
Constructor and Description |
---|
GelfREDISSender(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedisPool,
String redisKey,
ErrorReporter errorReporter) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the sender and free resources.
|
boolean |
sendMessage(GelfMessage message)
Send the Gelf message.
|
protected boolean |
sendMessage0(GelfMessage message) |
public GelfREDISSender(redis.clients.jedis.util.Pool<redis.clients.jedis.Jedis> jedisPool, String redisKey, ErrorReporter errorReporter)
public boolean sendMessage(GelfMessage message)
GelfSender
sendMessage
in interface GelfSender
message
- the messageprotected boolean sendMessage0(GelfMessage message)
public void close()
GelfSender
close
in interface GelfSender
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2013–2023. All rights reserved.