Package com.soulfiremc.server.util.netty
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 aTransportType
record class. -
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends io.netty.channel.socket.DatagramChannel> Returns the value of thedatagramChannelClass
record component.io.netty.channel.ChannelFactory
<? extends io.netty.channel.socket.DatagramChannel> Returns the value of thedatagramChannelFactory
record component.final boolean
Indicates whether some other object is "equal to" this one.Function
<ThreadFactory, io.netty.channel.EventLoopGroup> Returns the value of theeventLoopGroupFactory
record component.final int
hashCode()
Returns a hash code value for this object.method()
Returns the value of themethod
record component.Class
<? extends io.netty.channel.socket.ServerSocketChannel> Returns the value of theserverSocketChannelClass
record component.io.netty.channel.ChannelFactory
<? extends io.netty.channel.socket.ServerSocketChannel> Returns the value of theserverSocketChannelFactory
record component.Class
<? extends io.netty.channel.socket.SocketChannel> Returns the value of thesocketChannelClass
record component.io.netty.channel.ChannelFactory
<? extends io.netty.channel.socket.SocketChannel> Returns the value of thesocketChannelFactory
record component.boolean
Returns the value of thesupportsTcpFastOpenClient
record component.boolean
Returns the value of thesupportsTcpFastOpenServer
record component.final String
toString()
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 aTransportType
record class.- Parameters:
method
- the value for themethod
record componentserverSocketChannelClass
- the value for theserverSocketChannelClass
record componentserverSocketChannelFactory
- the value for theserverSocketChannelFactory
record componentsocketChannelClass
- the value for thesocketChannelClass
record componentsocketChannelFactory
- the value for thesocketChannelFactory
record componentdatagramChannelClass
- the value for thedatagramChannelClass
record componentdatagramChannelFactory
- the value for thedatagramChannelFactory
record componenteventLoopGroupFactory
- the value for theeventLoopGroupFactory
record componentsupportsTcpFastOpenServer
- the value for thesupportsTcpFastOpenServer
record componentsupportsTcpFastOpenClient
- the value for thesupportsTcpFastOpenClient
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
method
Returns the value of themethod
record component.- Returns:
- the value of the
method
record component
-
serverSocketChannelClass
Returns the value of theserverSocketChannelClass
record component.- Returns:
- the value of the
serverSocketChannelClass
record component
-
serverSocketChannelFactory
public io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelFactory()Returns the value of theserverSocketChannelFactory
record component.- Returns:
- the value of the
serverSocketChannelFactory
record component
-
socketChannelClass
Returns the value of thesocketChannelClass
record component.- Returns:
- the value of the
socketChannelClass
record component
-
socketChannelFactory
public io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.SocketChannel> socketChannelFactory()Returns the value of thesocketChannelFactory
record component.- Returns:
- the value of the
socketChannelFactory
record component
-
datagramChannelClass
Returns the value of thedatagramChannelClass
record component.- Returns:
- the value of the
datagramChannelClass
record component
-
datagramChannelFactory
public io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> datagramChannelFactory()Returns the value of thedatagramChannelFactory
record component.- Returns:
- the value of the
datagramChannelFactory
record component
-
eventLoopGroupFactory
Returns the value of theeventLoopGroupFactory
record component.- Returns:
- the value of the
eventLoopGroupFactory
record component
-
supportsTcpFastOpenServer
public boolean supportsTcpFastOpenServer()Returns the value of thesupportsTcpFastOpenServer
record component.- Returns:
- the value of the
supportsTcpFastOpenServer
record component
-
supportsTcpFastOpenClient
public boolean supportsTcpFastOpenClient()Returns the value of thesupportsTcpFastOpenClient
record component.- Returns:
- the value of the
supportsTcpFastOpenClient
record component
-