Record Class TransportHelper.TransportType
java.lang.Object
java.lang.Record
com.soulfiremc.server.util.netty.TransportHelper.TransportType
- Enclosing class:
TransportHelper
public static record TransportHelper.TransportType(TransportHelper.TransportMethod method, Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelFactory, Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.SocketChannel> socketChannelFactory, Class<? extends io.netty.channel.socket.DatagramChannel> datagramChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory, Function<ThreadFactory, io.netty.channel.EventLoopGroup> eventLoopGroupFactory, boolean supportsTcpFastOpenServer, boolean supportsTcpFastOpenClient)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTransportType(TransportHelper.TransportMethod method, Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelFactory, Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.SocketChannel> socketChannelFactory, Class<? extends io.netty.channel.socket.DatagramChannel> datagramChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory, Function<ThreadFactory, io.netty.channel.EventLoopGroup> eventLoopGroupFactory, boolean supportsTcpFastOpenServer, boolean supportsTcpFastOpenClient) Creates an instance of aTransportTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends io.netty.channel.socket.DatagramChannel> Returns the value of thedatagramChannelClassrecord component.io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> Returns the value of thedatagramChannelFactoryrecord component.final booleanIndicates whether some other object is "equal to" this one.Function<ThreadFactory, io.netty.channel.EventLoopGroup> Returns the value of theeventLoopGroupFactoryrecord component.final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.Class<? extends io.netty.channel.socket.ServerSocketChannel> Returns the value of theserverSocketChannelClassrecord component.io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.ServerSocketChannel> Returns the value of theserverSocketChannelFactoryrecord component.Class<? extends io.netty.channel.socket.SocketChannel> Returns the value of thesocketChannelClassrecord component.io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.SocketChannel> Returns the value of thesocketChannelFactoryrecord component.booleanReturns the value of thesupportsTcpFastOpenClientrecord component.booleanReturns the value of thesupportsTcpFastOpenServerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TransportType
public TransportType(TransportHelper.TransportMethod method, Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelFactory, Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.SocketChannel> socketChannelFactory, Class<? extends io.netty.channel.socket.DatagramChannel> datagramChannelClass, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory, Function<ThreadFactory, io.netty.channel.EventLoopGroup> eventLoopGroupFactory, boolean supportsTcpFastOpenServer, boolean supportsTcpFastOpenClient) Creates an instance of aTransportTyperecord class.- Parameters:
method- the value for themethodrecord componentserverSocketChannelClass- the value for theserverSocketChannelClassrecord componentserverSocketChannelFactory- the value for theserverSocketChannelFactoryrecord componentsocketChannelClass- the value for thesocketChannelClassrecord componentsocketChannelFactory- the value for thesocketChannelFactoryrecord componentdatagramChannelClass- the value for thedatagramChannelClassrecord componentdatagramChannelFactory- the value for thedatagramChannelFactoryrecord componenteventLoopGroupFactory- the value for theeventLoopGroupFactoryrecord componentsupportsTcpFastOpenServer- the value for thesupportsTcpFastOpenServerrecord componentsupportsTcpFastOpenClient- the value for thesupportsTcpFastOpenClientrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
method
Returns the value of themethodrecord component.- Returns:
- the value of the
methodrecord component
-
serverSocketChannelClass
Returns the value of theserverSocketChannelClassrecord component.- Returns:
- the value of the
serverSocketChannelClassrecord component
-
serverSocketChannelFactory
public io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelFactory()Returns the value of theserverSocketChannelFactoryrecord component.- Returns:
- the value of the
serverSocketChannelFactoryrecord component
-
socketChannelClass
Returns the value of thesocketChannelClassrecord component.- Returns:
- the value of the
socketChannelClassrecord component
-
socketChannelFactory
public io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.SocketChannel> socketChannelFactory()Returns the value of thesocketChannelFactoryrecord component.- Returns:
- the value of the
socketChannelFactoryrecord component
-
datagramChannelClass
Returns the value of thedatagramChannelClassrecord component.- Returns:
- the value of the
datagramChannelClassrecord component
-
datagramChannelFactory
public io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory()Returns the value of thedatagramChannelFactoryrecord component.- Returns:
- the value of the
datagramChannelFactoryrecord component
-
eventLoopGroupFactory
Returns the value of theeventLoopGroupFactoryrecord component.- Returns:
- the value of the
eventLoopGroupFactoryrecord component
-
supportsTcpFastOpenServer
public boolean supportsTcpFastOpenServer()Returns the value of thesupportsTcpFastOpenServerrecord component.- Returns:
- the value of the
supportsTcpFastOpenServerrecord component
-
supportsTcpFastOpenClient
public boolean supportsTcpFastOpenClient()Returns the value of thesupportsTcpFastOpenClientrecord component.- Returns:
- the value of the
supportsTcpFastOpenClientrecord component
-