Package org.cloudburstmc.netty.signaling
Interface ProviderTransport
- All Known Implementing Classes:
NativeProviderTransport
public interface ProviderTransport
Transport boundary. Provider code performs no native allocation or game packet handling.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic enumstatic final classImmutable profile bytes plus an endpoint-material ownership guard.static final classCandidate material changed while the native listener remained available; capture a fresh profile.static final record -
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<String>assistedJoin(AssistedJoin join, Runnable requireCurrent) default longCheap local publication counter; freshness changes do not change candidateRevision.The host profile exported from actual bound native metadata, with endpoint ownership held across asynchronous publication, persistence and application.close()default CompletionStage<Void>configureDiagnostics(DiagnosticHostPolicy policy, long deadlineNanos) Original successful-heartbeat monotonic deadline; asynchronous installation must not renew it.default CompletionStage<Void>Provider discovery only.default CompletionStage<Void>drain()installAdmissionKeys(List<AdmissionKey> keys) Atomic native snapshot installation.List<com.google.gson.JsonObject>pollEvents(int maximum) Drains at mostmaximumticket-correlated transport observations.default CompletionStage<Void>reportConnectivityChecks(long candidateRevision, List<ProviderTransport.ConnectivityCheck> checks) Existing heartbeat feedback only; no state/health command or reachability assertion.default booleandefault booleanLocal opt-in, independent of player serving state.
-
Method Details
-
supportsAssistedJoins
default boolean supportsAssistedJoins() -
assistedJoin
-
candidatePublicationVersion
default long candidatePublicationVersion()Cheap local publication counter; freshness changes do not change candidateRevision. -
configureStunServers
Provider discovery only. Explicit endpoints suppress resolution and monitoring. -
reportConnectivityChecks
default CompletionStage<Void> reportConnectivityChecks(long candidateRevision, List<ProviderTransport.ConnectivityCheck> checks) Existing heartbeat feedback only; no state/health command or reachability assertion. -
supportsDiagnosticAdmission
default boolean supportsDiagnosticAdmission()Local opt-in, independent of player serving state. Incoming probes cannot configure their own authority. -
configureDiagnostics
Original successful-heartbeat monotonic deadline; asynchronous installation must not renew it. -
disableDiagnostics
-
captureHostProfile
CompletionStage<ProviderTransport.HostProfileSnapshot> captureHostProfile()The host profile exported from actual bound native metadata, with endpoint ownership held across asynchronous publication, persistence and application. -
installAdmissionKeys
Atomic native snapshot installation. Durable application storage remains the caller's responsibility. -
pollEvents
Drains at mostmaximumticket-correlated transport observations. -
drain
CompletionStage<Void> drain() -
close
CompletionStage<Void> close()
-