Search in sources :

Example 1 with FsmEventProcessor

use of com.hotels.styx.common.FsmEventProcessor in project styx by ExpediaGroup.

the class HttpPipelineHandler method channelActive.

@Override
public void channelActive(ChannelHandlerContext ctx) throws Exception {
    String loggingPrefix = format("%s -> %s", ctx.channel().remoteAddress(), ctx.channel().localAddress());
    this.eventProcessor = new QueueDrainingEventProcessor(new FsmEventProcessor<>(stateMachine, (throwable, state) -> {
    }, loggingPrefix));
    super.channelActive(ctx);
}
Also used : QueueDrainingEventProcessor(com.hotels.styx.common.QueueDrainingEventProcessor) FsmEventProcessor(com.hotels.styx.common.FsmEventProcessor)

Aggregations

FsmEventProcessor (com.hotels.styx.common.FsmEventProcessor)1 QueueDrainingEventProcessor (com.hotels.styx.common.QueueDrainingEventProcessor)1