Class NostrTURNPool
java.lang.Object
org.ngengine.nostr4j.rtc.NostrTURNPool
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidsetFailedResurrectionBackoff(long backoff, TimeUnit unit) voidsetFailedResurrectionBackoffMs(long backoffMs)
-
Constructor Details
-
NostrTURNPool
public NostrTURNPool() -
NostrTURNPool
public NostrTURNPool(int maxDiff)
-
-
Method Details
-
setFailedResurrectionBackoff
-
setFailedResurrectionBackoffMs
public void setFailedResurrectionBackoffMs(long backoffMs) -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-