Class NostrTURNPool

java.lang.Object
org.ngengine.nostr4j.rtc.NostrTURNPool
All Implemented Interfaces:
AutoCloseable

public final class NostrTURNPool extends Object implements AutoCloseable
Manages TURN server connections and virtual socket sessions. Responsibilities: - Pool websocket connections to TURN servers - Manage session lifecycle (challenge -> connect -> ack) - Route binary data between virtual sockets - Handle protocol state transitions
  • Constructor Details

    • NostrTURNPool

      public NostrTURNPool()
    • NostrTURNPool

      public NostrTURNPool(int maxDiff)
  • Method Details

    • setFailedResurrectionBackoff

      public void setFailedResurrectionBackoff(long backoff, TimeUnit unit)
    • setFailedResurrectionBackoffMs

      public void setFailedResurrectionBackoffMs(long backoffMs)
    • close

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