Class EndpointConnectivityController
java.lang.Object
org.cloudburstmc.netty.signaling.provider.connectivity.EndpointConnectivityController
- All Implemented Interfaces:
AutoCloseable
Opt-in same-mux observation lifecycle, one
StunObserver per family that needs STUN.
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 final recordstatic final recordRevision changes only when the available endpoint set changes, not on unchanged STUN refreshes.static enum -
Constructor Summary
ConstructorsConstructorDescriptionEndpointConnectivityController(EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericServers, Duration maxObservationAge, org.cloudburstmc.netty.util.nethernet.StunObserver.MonitorFactory factory) The factory must inherit the listener's exact bind address and fixed port. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closing again retries a monitor that failed to close.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, org.cloudburstmc.netty.util.nethernet.StunObserver.MonitorFactory factory) The factory must inherit the listener's exact bind address and fixed port. No utility socket.
-
-
Method Details
-
replaceStunServer
Explicit bounded DNS/provider rotation seam. A replacement withdraws the old observation immediately. -
snapshot
-
close
public void close()Closing again retries a monitor that failed to close.- Specified by:
closein interfaceAutoCloseable
-