Class NativeDiagnosticHostGate

java.lang.Object
org.cloudburstmc.netty.signaling.diagnostic.NativeDiagnosticHostGate
All Implemented Interfaces:
AutoCloseable

public final class NativeDiagnosticHostGate extends Object implements AutoCloseable
Explicit diagnostic consumer; never constructs a player child, principal or pipeline event.
  • Constructor Details

  • Method Details

    • replacePolicy

      public void replacePolicy(DiagnosticHostPolicy replacement)
      Trusted local configuration only. Does not renew any admitted attempt or its original deadline.
    • stats

    • failure

      public Throwable failure()
    • pollResults

      public List<NativeDiagnosticHostGate.Result> pollResults()
    • pollResults

      public List<NativeDiagnosticHostGate.Result> pollResults(int maximum)
    • retainEndpoints

      public void retainEndpoints(Set<DiagnosticHostPolicy.Endpoint> retained)
      Remove only endpoints that ceased to belong to this listener's advertised snapshot. Preserve replay history.
    • termination

      public CompletionStage<Void> termination()
    • admit

      public tel.schich.libdatachannel.IceUdpMuxListener.Acceptance admit(tel.schich.libdatachannel.IceUdpMuxListener.Request request)
      Same-listener hook. Native code verifies the first STUN integrity before this acceptance creates a peer.
    • admit

      public tel.schich.libdatachannel.IceUdpMuxListener.Acceptance admit(tel.schich.libdatachannel.IceUdpMuxListener.Request request, VerifiedAdmission verified)
      Takes ownership of a token already verified by the shared player/diagnostic admission path.
    • assist

      public String assist(AssistedJoin join, Runnable requireCurrent)
      Authenticated WebSocket path only; never accepts a profile2 permit from an unknown inbound packet.
    • reuse

      public tel.schich.libdatachannel.IceUdpMuxListener.Acceptance reuse(tel.schich.libdatachannel.IceUdpMuxListener.Request request)
      Reuse a proactively prepared diagnostic peer; unknown profile2 attempts remain rejected.
    • requireAssistedCurrent

      public void requireAssistedCurrent(AssistedJoin join)
      A pending answer cannot outlive its original native attempt while local gathering completes.
    • cancelAssisted

      public void cancelAssisted(AssistedJoin join)
    • assistedAnswerCandidate

      public void assistedAnswerCandidate(AssistedJoin join, InetSocketAddress candidate)
      Trusted same-mux gatherer capture, before the provider returns the answer.
    • tick

      public void tick()
      Called by the existing host maintenance loop; never schedules unbounded per-packet work.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable