Class NativeAdmissionServerChannel

java.lang.Object
io.netty.util.DefaultAttributeMap
io.netty.channel.AbstractChannel
io.netty.channel.AbstractServerChannel
org.cloudburstmc.netty.signaling.admission.NativeAdmissionServerChannel
All Implemented Interfaces:
io.netty.channel.Channel, io.netty.channel.ChannelOutboundInvoker, io.netty.channel.ServerChannel, io.netty.util.AttributeMap, Comparable<io.netty.channel.Channel>

public final class NativeAdmissionServerChannel extends io.netty.channel.AbstractServerChannel
Fixed-UDP host. Java decides admission once; native code owns transport packets.
  • Constructor Details

  • Method Details

    • doBind

      protected void doBind(SocketAddress socketAddress) throws Exception
      Specified by:
      doBind in class io.netty.channel.AbstractChannel
      Throws:
      Exception
    • assistDiagnostic

      public CompletionStage<String> assistDiagnostic(AssistedJoin join, Runnable requireCurrent)
      Same owned listener, quarantined diagnostic policy; no player reservation or child.
    • assistDiagnostic

      public CompletionStage<String> assistDiagnostic(AssistedJoin join, Runnable requireCurrent, Map<Integer,InetSocketAddress> stunServers, Map<Integer,InetSocketAddress> publicCandidates)
    • pollEvents

    • pollEvents

      public List<NativeAdmissionServerChannel.Event> pollEvents(int maximum)
    • admissionStats

      public AdmissionGate.Stats admissionStats()
    • liveNativePeers

      public int liveNativePeers()
    • creationAttempts

      public long creationAttempts()
    • droppedEvents

      public long droppedEvents()
    • nativeStats

      public long[] nativeStats()
    • enableConnectivity

      public CompletionStage<EndpointConnectivityController> enableConnectivity(EndpointSelection selection, Map<EndpointSelection.Family,InetSocketAddress> numericStunServers, Duration maxObservationAge)
      Explicit opt-in after binding. Observations never mutate the provider profile or admission incarnation. The controller polls on demand; native code independently maintains STUN. Closing this channel closes its monitors before releasing the gameplay listener.
    • identity

      public NativeHostIdentity identity()
    • enableDiagnostics

      Explicit opt-in only. No provider field or externally advertised capability is changed.
    • termination

      public CompletionStage<Void> termination()
    • drainAdmissions

      public void drainAdmissions()
    • isServing

      public boolean isServing()
    • doClose

      protected void doClose()
      Specified by:
      doClose in class io.netty.channel.AbstractChannel
    • doBeginRead

      protected void doBeginRead()
      Specified by:
      doBeginRead in class io.netty.channel.AbstractChannel
    • isCompatible

      protected boolean isCompatible(io.netty.channel.EventLoop loop)
      Specified by:
      isCompatible in class io.netty.channel.AbstractChannel
    • localAddress0

      protected SocketAddress localAddress0()
      Specified by:
      localAddress0 in class io.netty.channel.AbstractChannel
    • config

      public io.netty.channel.ChannelConfig config()
    • isOpen

      public boolean isOpen()
    • isActive

      public boolean isActive()
    • metadata

      public io.netty.channel.ChannelMetadata metadata()
      Specified by:
      metadata in interface io.netty.channel.Channel
      Overrides:
      metadata in class io.netty.channel.AbstractServerChannel