
io.honeycomb.libhoney.transport.batch.Batcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libhoney-java Show documentation
Show all versions of libhoney-java Show documentation
The Java client for sending events honeycomb
The newest version!
package io.honeycomb.libhoney.transport.batch;
/**
* Batcher accepts events (asynchronously) and collects them according to some batching strategy,
* before sending batched events on for further processing.
*
* @param The type of events to batch.
*/
public interface Batcher extends AutoCloseable {
/**
* Offer an event to the batcher.
* If this returns true, the event has been accepted for further processing (asynchronously).
* If false the event has been rejected - either as a result of the internal queue being at capacity,
* or because the Batcher has been closed.
*
* @param event to batch and process - must not be null.
* @return true if event has been accepted for processing, or false if it's been rejected.
*/
boolean offerEvent(T event);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy