/** * Creates a new embedder whose pipeline is composed of the specified * handlers. */ public HandlerEmbedder(boolean fireInitialEvents, ChannelHandler... handlers) { pipeline = new EmbeddedChannelPipeline(); configurePipeline( handlers ); channel = new EmbeddedChannel( pipeline, sink ); if (fireInitialEvents) { fireInitialEvents(); } }