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 recordstatic 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.Capture endpoint ownership across asynchronous publication, persistence and application.close()default CompletionStage<Void>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()CompletionStage<com.google.gson.JsonObject>Existing PublishHostProfileRequest, exported from actual bound native metadata.Atomic native snapshot installation.List<com.google.gson.JsonObject>Bounded ticket-correlated transport and application observations.default List<com.google.gson.JsonObject>pollEvents(int maximum) Drain at most the caller's available retained capacity; unsupported transports must not drain anything.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.default booleanWhether this integration can observe the application join/rejection boundary.
-
Method Details
-
hostProfile
CompletionStage<com.google.gson.JsonObject> hostProfile()Existing PublishHostProfileRequest, exported from actual bound native metadata. -
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
-
configureDiagnostics
Original successful-heartbeat monotonic deadline; asynchronous installation must not renew it. -
disableDiagnostics
-
captureHostProfile
Capture endpoint ownership across asynchronous publication, persistence and application. Legacy adapters retain their unversioned behavior; versioned profiles require an owned override. -
installTicketKeys
Atomic native snapshot installation. Durable application storage remains the caller's responsibility. -
supportsGameOutcomes
default boolean supportsGameOutcomes()Whether this integration can observe the application join/rejection boundary. -
pollEvents
List<com.google.gson.JsonObject> pollEvents()Bounded ticket-correlated transport and application observations. -
pollEvents
Drain at most the caller's available retained capacity; unsupported transports must not drain anything. -
drain
CompletionStage<Void> drain() -
close
CompletionStage<Void> close()
-