public abstract class Ingester extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected Map<io.netty.channel.ChannelOption<?>,?> |
childChannelOptions |
protected io.netty.channel.ChannelInitializer |
initializer
The channel initializer object for the netty channel
|
protected int |
listeningPort
The port that this ingester should be listening on
|
protected Map<io.netty.channel.ChannelOption<?>,?> |
parentChannelOptions |
| Constructor and Description |
|---|
Ingester(io.netty.channel.ChannelHandler commandHandler,
int port) |
Ingester(io.netty.channel.ChannelInitializer initializer,
int port) |
Ingester(List<com.google.common.base.Function<io.netty.channel.Channel,io.netty.channel.ChannelHandler>> decoders,
io.netty.channel.ChannelHandler commandHandler,
int port) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDecoders(io.netty.channel.Channel ch,
List<com.google.common.base.Function<io.netty.channel.Channel,io.netty.channel.ChannelHandler>> decoders)
Adds additional decoders passed in during construction of this object (if not null).
|
protected void |
addIdleTimeoutHandler(io.netty.channel.ChannelPipeline pipeline)
Adds an idle timeout handler to the given pipeline
|
Ingester |
withChildChannelOptions(Map<io.netty.channel.ChannelOption<?>,?> childChannelOptions) |
Ingester |
withParentChannelOptions(Map<io.netty.channel.ChannelOption<?>,?> parentChannelOptions) |
protected final int listeningPort
protected io.netty.channel.ChannelInitializer initializer
@Nullable protected Map<io.netty.channel.ChannelOption<?>,?> parentChannelOptions
public Ingester(@Nullable List<com.google.common.base.Function<io.netty.channel.Channel,io.netty.channel.ChannelHandler>> decoders, io.netty.channel.ChannelHandler commandHandler, int port)
public Ingester(io.netty.channel.ChannelHandler commandHandler,
int port)
public Ingester(io.netty.channel.ChannelInitializer initializer,
int port)
public Ingester withParentChannelOptions(Map<io.netty.channel.ChannelOption<?>,?> parentChannelOptions)
public Ingester withChildChannelOptions(Map<io.netty.channel.ChannelOption<?>,?> childChannelOptions)
protected void addIdleTimeoutHandler(io.netty.channel.ChannelPipeline pipeline)
pipeline - the pipeline to add the idle timeout handlerprotected void addDecoders(io.netty.channel.Channel ch,
@Nullable
List<com.google.common.base.Function<io.netty.channel.Channel,io.netty.channel.ChannelHandler>> decoders)
ch - the channel and pipeline to add these decoders todecoders - the list of decoders to add to the channelCopyright © 2018. All rights reserved.