use of org.logstash.beats.AckEncoder in project LogHub by fbacchella.
the class Beats method addHandlers.
@Override
public void addHandlers(ChannelPipeline pipe) {
super.addHandlers(pipe);
// From org.logstash.beats.Server
// We have set a specific executor for the idle check, because the `beatsHandler` can be
// blocked on the queue, this the idleStateHandler manage the `KeepAlive` signal.
pipe.addBefore(idleExecutorGroup, "Splitter", "KeepAlive", new IdleStateHandler(clientInactivityTimeoutSeconds, 5, 0));
pipe.addAfter("Splitter", "Acker", new AckEncoder());
pipe.addAfter("Acker", "Handler", new BeatsHandler(messageListener));
}
Aggregations