use of org.freeswitch.esl.client.internal.debug.ExecutionHandler in project bigbluebutton by bigbluebutton.
the class InboundPipelineFactory method getPipeline.
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
pipeline.addLast("encoder", new StringEncoder());
pipeline.addLast("decoder", new EslFrameDecoder(8192));
// Add an executor to ensure separate thread for each upstream message from here
pipeline.addLast("executor", new ExecutionHandler(new OrderedMemoryAwareThreadPoolExecutor(16, 1048576, 1048576)));
// now the inbound client logic
pipeline.addLast("clientHandler", handler);
return pipeline;
}
use of org.freeswitch.esl.client.internal.debug.ExecutionHandler in project bigbluebutton by bigbluebutton.
the class AbstractOutboundPipelineFactory method getPipeline.
public ChannelPipeline getPipeline() throws Exception {
ChannelPipeline pipeline = Channels.pipeline();
// Add the text line codec combination first
pipeline.addLast("encoder", new StringEncoder());
// Note that outbound mode requires the decoder to treat many 'headers' as body lines
pipeline.addLast("decoder", new EslFrameDecoder(8092, true));
// Add an executor to ensure separate thread for each upstream message from here
pipeline.addLast("executor", new ExecutionHandler(new OrderedMemoryAwareThreadPoolExecutor(16, 1048576, 1048576)));
// now the outbound client logic
pipeline.addLast("clientHandler", makeHandler());
return pipeline;
}
Aggregations