C
- The actual customizer class. Must also be implemented by the
AbstractCompositeCustomizer
subclass.R
- The ChannelRole type.@Internal public abstract class AbstractCompositeCustomizer<C,R> extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractCompositeCustomizer() |
protected |
AbstractCompositeCustomizer(List<C> members) |
Modifier and Type | Method and Description |
---|---|
void |
add(C customizer)
Add customizer.
|
protected void |
forEach(Consumer<C> consumer) |
protected abstract C |
makeNewComposite(List<C> members) |
protected abstract C |
specializeForChannel(C member,
io.netty.channel.Channel channel,
R role) |
C |
specializeForChannel(io.netty.channel.Channel channel,
R role) |
public void add(C customizer)
customizer
- The customizerprotected abstract C specializeForChannel(C member, io.netty.channel.Channel channel, R role)
@NonNull public final C specializeForChannel(@NonNull io.netty.channel.Channel channel, @NonNull R role)