Top Description Fields Constructors Methods
io.netty5.channel

public final Class ReflectiveServerChannelFactory<T extends ServerChannel>

extends Object
implements ServerChannelFactory<T extends ServerChannel>
Class Inheritance
All Implemented Interfaces
io.netty5.channel.ServerChannelFactory
Imports
io.netty5.util.internal.StringUtil, java.lang.reflect.Constructor

A ChannelFactory that instantiates a new ServerChannel by invoking its default constructor reflectively.

Field Summary

Modifier and TypeField and Description
private final Constructor<? extends T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public T
newChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)

Implements io.netty5.channel.ServerChannelFactory.newChannel.

Creates a new channel.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

constructorback to summary
private final Constructor<? extends T> constructor

Constructor Detail

ReflectiveServerChannelFactoryback to summary
public ReflectiveServerChannelFactory(Class<? extends T> clazz)

Method Detail

newChannelback to summary
public T newChannel(EventLoop eventLoop, EventLoopGroup childEventLoopGroup)

Implements io.netty5.channel.ServerChannelFactory.newChannel.

Doc from io.netty5.channel.ServerChannelFactory.newChannel.

Creates a new channel.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override