biz.paluch.logging.gelf.intern.GelfSender Maven / Gradle / Ivy
The newest version!
package biz.paluch.logging.gelf.intern;
import java.io.Closeable;
/**
* Strategy interface to send a {@link GelfMessage} without being opinionated about the underlying transport.
*
* @author https://github.com/t0xa/gelfj
*/
public interface GelfSender extends Closeable {
/**
* Send the Gelf message.
*
* @param message the message
* @return {@literal true} if the message was sent
*/
boolean sendMessage(GelfMessage message);
/**
* Close the sender and free resources.
*/
void close();
}