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

    Constructors
    Constructor
    Description
    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 a TransportType record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends io.netty.channel.socket.DatagramChannel>
    Returns the value of the datagramChannelClass record component.
    io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel>
    Returns the value of the datagramChannelFactory record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Function<ThreadFactory,io.netty.channel.EventLoopGroup>
    Returns the value of the eventLoopGroupFactory record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the method record component.
    Class<? extends io.netty.channel.socket.ServerSocketChannel>
    Returns the value of the serverSocketChannelClass record component.
    io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.ServerSocketChannel>
    Returns the value of the serverSocketChannelFactory record component.
    Class<? extends io.netty.channel.socket.SocketChannel>
    Returns the value of the socketChannelClass record component.
    io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.SocketChannel>
    Returns the value of the socketChannelFactory record component.
    boolean
    Returns the value of the supportsTcpFastOpenClient record component.
    boolean
    Returns the value of the supportsTcpFastOpenServer record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a TransportType record class.
      Parameters:
      method - the value for the method record component
      serverSocketChannelClass - the value for the serverSocketChannelClass record component
      serverSocketChannelFactory - the value for the serverSocketChannelFactory record component
      socketChannelClass - the value for the socketChannelClass record component
      socketChannelFactory - the value for the socketChannelFactory record component
      datagramChannelClass - the value for the datagramChannelClass record component
      datagramChannelFactory - the value for the datagramChannelFactory record component
      eventLoopGroupFactory - the value for the eventLoopGroupFactory record component
      supportsTcpFastOpenServer - the value for the supportsTcpFastOpenServer record component
      supportsTcpFastOpenClient - the value for the supportsTcpFastOpenClient record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • method

      Returns the value of the method record component.
      Returns:
      the value of the method record component
    • serverSocketChannelClass

      public Class<? extends io.netty.channel.socket.ServerSocketChannel> serverSocketChannelClass()
      Returns the value of the serverSocketChannelClass 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 the serverSocketChannelFactory record component.
      Returns:
      the value of the serverSocketChannelFactory record component
    • socketChannelClass

      public Class<? extends io.netty.channel.socket.SocketChannel> socketChannelClass()
      Returns the value of the socketChannelClass 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 the socketChannelFactory record component.
      Returns:
      the value of the socketChannelFactory record component
    • datagramChannelClass

      public Class<? extends io.netty.channel.socket.DatagramChannel> datagramChannelClass()
      Returns the value of the datagramChannelClass 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 the datagramChannelFactory record component.
      Returns:
      the value of the datagramChannelFactory record component
    • eventLoopGroupFactory

      public Function<ThreadFactory,io.netty.channel.EventLoopGroup> eventLoopGroupFactory()
      Returns the value of the eventLoopGroupFactory record component.
      Returns:
      the value of the eventLoopGroupFactory record component
    • supportsTcpFastOpenServer

      public boolean supportsTcpFastOpenServer()
      Returns the value of the supportsTcpFastOpenServer record component.
      Returns:
      the value of the supportsTcpFastOpenServer record component
    • supportsTcpFastOpenClient

      public boolean supportsTcpFastOpenClient()
      Returns the value of the supportsTcpFastOpenClient record component.
      Returns:
      the value of the supportsTcpFastOpenClient record component