Class EndpointConnectivityController
java.lang.Object
org.cloudburstmc.netty.signaling.provider.connectivity.EndpointConnectivityController
- All Implemented Interfaces:
AutoCloseable
Opt-in same-mux observation lifecycle. Native monitors send/refresh STUN independently of polling.
Call snapshot periodically to observe remaps/expiry; no HTTP, provider profile or reachability is emitted.
All operations are serialized, including monitor close/replacement. The caller must stop this owner
before its listener and must not use an old snapshot beyond its monotonic freshness deadline.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic interfacestatic interfaceThe factory must inherit the listener's exact bind address and fixed port.static final recordstatic final recordAtomic native sample.static final recordRevision changes only when the available endpoint set changes, not on unchanged STUN refreshes.static enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionEndpointConnectivityController(EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericServers, Duration maxObservationAge, EndpointConnectivityController.MonitorFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidreplaceStunServer(EndpointSelection.Family family, InetSocketAddress numericServer) Explicit bounded DNS/provider rotation seam.snapshot()
-
Constructor Details
-
EndpointConnectivityController
public EndpointConnectivityController(EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericServers, Duration maxObservationAge, EndpointConnectivityController.MonitorFactory factory)
-
-
Method Details
-
replaceStunServer
Explicit bounded DNS/provider rotation seam. A replacement withdraws the old observation immediately. -
snapshot
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-