Class NativeProviderTransport
java.lang.Object
org.cloudburstmc.netty.signaling.admission.NativeProviderTransport
- All Implemented Interfaces:
ProviderTransport
Profile adapter: background key/profile lifecycle only; no per-join metadata input is used.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cloudburstmc.netty.signaling.ProviderTransport
ProviderTransport.ConnectivityCheck, ProviderTransport.ConnectivityOutcome, ProviderTransport.HostProfileSnapshot, ProviderTransport.HostProfileSnapshotChangedException, ProviderTransport.StunServer, ProviderTransport.TicketKey -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionassistedJoin(AssistedJoin join, Runnable requireCurrent) static StringlongCheap local publication counter; freshness changes do not change candidateRevision.Capture endpoint ownership across asynchronous publication, persistence and application.channel()close()Trusted local configuration, serialized on this listener; no installation acknowledgement or control owner.configureDiagnostics(DiagnosticHostPolicy policy, long deadlineNanos) Original successful-heartbeat monotonic deadline; asynchronous installation must not renew it.Provider discovery only.Withdraw new and active diagnostics, retaining the local anti-replay history.drain()CompletionStage<com.google.gson.JsonObject>Existing PublishHostProfileRequest, exported from actual bound native metadata.Atomic native snapshot installation.open(io.netty.bootstrap.ServerBootstrap bootstrap, InetSocketAddress bind, InetSocketAddress advertised, Path certificate, Path privateKey, AdmissionGate.Limits limits) Explicit advertised candidate supports wildcard/local binds and operator-provisioned NAT mappings.open(io.netty.bootstrap.ServerBootstrap bootstrap, InetSocketAddress bind, Path certificate, Path privateKey, AdmissionGate.Limits limits) The caller provisions the host PEM identity before opening/registration.open(io.netty.bootstrap.ServerBootstrap bootstrap, InetSocketAddress bind, Supplier<List<InetSocketAddress>> advertised, Path certificate, Path privateKey, AdmissionGate.Limits limits) Refreshes the endpoint snapshot on background profile publication; packet handling stays native.openMaintained(io.netty.bootstrap.ServerBootstrap bootstrap, EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericStunServers, Path certificate, Path privateKey, AdmissionGate.Limits limits) Explicit maintained publication, on the already bound gameplay mux.openMaintained(io.netty.bootstrap.ServerBootstrap bootstrap, EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericStunServers, Path certificate, Path privateKey, AdmissionGate.Limits limits, boolean assistedJoins) Explicit assistance uses bounded per-join discovery instead of background STUN warming.openMaintained(io.netty.bootstrap.ServerBootstrap bootstrap, EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericStunServers, Path certificate, Path privateKey, AdmissionGate.Limits limits, boolean assistedJoins, boolean stunWarming) Warming can be disabled without disabling host-owned publication and recovery checks.pollDiagnosticResults(int maximum) Local observations only.List<com.google.gson.JsonObject>Bounded ticket-correlated transport and application observations.List<com.google.gson.JsonObject>pollEvents(int maximum) Drain at most the caller's available retained capacity; unsupported transports must not drain anything.reportConnectivityChecks(long revision, List<ProviderTransport.ConnectivityCheck> checks) Existing heartbeat feedback only; no state/health command or reachability assertion.booleanbooleanLocal opt-in, independent of player serving state.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cloudburstmc.netty.signaling.ProviderTransport
supportsGameOutcomes
-
Field Details
-
CAPABILITY
- See Also:
-
-
Method Details
-
open
public static CompletionStage<NativeProviderTransport> open(io.netty.bootstrap.ServerBootstrap bootstrap, InetSocketAddress bind, Path certificate, Path privateKey, AdmissionGate.Limits limits) The caller provisions the host PEM identity before opening/registration. No client state is accepted. -
open
public static CompletionStage<NativeProviderTransport> open(io.netty.bootstrap.ServerBootstrap bootstrap, InetSocketAddress bind, InetSocketAddress advertised, Path certificate, Path privateKey, AdmissionGate.Limits limits) Explicit advertised candidate supports wildcard/local binds and operator-provisioned NAT mappings. -
open
public static CompletionStage<NativeProviderTransport> open(io.netty.bootstrap.ServerBootstrap bootstrap, InetSocketAddress bind, Supplier<List<InetSocketAddress>> advertised, Path certificate, Path privateKey, AdmissionGate.Limits limits) Refreshes the endpoint snapshot on background profile publication; packet handling stays native. -
openMaintained
public static CompletionStage<NativeProviderTransport> openMaintained(io.netty.bootstrap.ServerBootstrap bootstrap, EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericStunServers, Path certificate, Path privateKey, AdmissionGate.Limits limits) Explicit maintained publication, on the already bound gameplay mux. No STUN server discovery occurs here. -
openMaintained
public static CompletionStage<NativeProviderTransport> openMaintained(io.netty.bootstrap.ServerBootstrap bootstrap, EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericStunServers, Path certificate, Path privateKey, AdmissionGate.Limits limits, boolean assistedJoins) Explicit assistance uses bounded per-join discovery instead of background STUN warming. -
openMaintained
public static CompletionStage<NativeProviderTransport> openMaintained(io.netty.bootstrap.ServerBootstrap bootstrap, EndpointSelection selection, Map<EndpointSelection.Family, InetSocketAddress> numericStunServers, Path certificate, Path privateKey, AdmissionGate.Limits limits, boolean assistedJoins, boolean stunWarming) Warming can be disabled without disabling host-owned publication and recovery checks. -
audience
-
channel
-
candidatePublicationVersion
public long candidatePublicationVersion()Description copied from interface:ProviderTransportCheap local publication counter; freshness changes do not change candidateRevision.- Specified by:
candidatePublicationVersionin interfaceProviderTransport
-
configureStunServers
Description copied from interface:ProviderTransportProvider discovery only. Explicit endpoints suppress resolution and monitoring.- Specified by:
configureStunServersin interfaceProviderTransport
-
reportConnectivityChecks
public CompletionStage<Void> reportConnectivityChecks(long revision, List<ProviderTransport.ConnectivityCheck> checks) Description copied from interface:ProviderTransportExisting heartbeat feedback only; no state/health command or reachability assertion.- Specified by:
reportConnectivityChecksin interfaceProviderTransport
-
supportsDiagnosticAdmission
public boolean supportsDiagnosticAdmission()Description copied from interface:ProviderTransportLocal opt-in, independent of player serving state. Incoming probes cannot configure their own authority.- Specified by:
supportsDiagnosticAdmissionin interfaceProviderTransport
-
configureDiagnostics
Trusted local configuration, serialized on this listener; no installation acknowledgement or control owner.- Specified by:
configureDiagnosticsin interfaceProviderTransport
-
configureDiagnostics
Description copied from interface:ProviderTransportOriginal successful-heartbeat monotonic deadline; asynchronous installation must not renew it.- Specified by:
configureDiagnosticsin interfaceProviderTransport
-
disableDiagnostics
Withdraw new and active diagnostics, retaining the local anti-replay history. Player admission is untouched.- Specified by:
disableDiagnosticsin interfaceProviderTransport
-
pollDiagnosticResults
Local observations only. They do not require a control-plane completion receipt. -
diagnosticDroppedResultCount
-
hostProfile
Description copied from interface:ProviderTransportExisting PublishHostProfileRequest, exported from actual bound native metadata.- Specified by:
hostProfilein interfaceProviderTransport
-
supportsAssistedJoins
public boolean supportsAssistedJoins()- Specified by:
supportsAssistedJoinsin interfaceProviderTransport
-
assistedJoin
- Specified by:
assistedJoinin interfaceProviderTransport
-
captureHostProfile
Description copied from interface:ProviderTransportCapture endpoint ownership across asynchronous publication, persistence and application. Legacy adapters retain their unversioned behavior; versioned profiles require an owned override.- Specified by:
captureHostProfilein interfaceProviderTransport
-
installTicketKeys
Description copied from interface:ProviderTransportAtomic native snapshot installation. Durable application storage remains the caller's responsibility.- Specified by:
installTicketKeysin interfaceProviderTransport
-
pollEvents
Description copied from interface:ProviderTransportBounded ticket-correlated transport and application observations.- Specified by:
pollEventsin interfaceProviderTransport
-
pollEvents
Description copied from interface:ProviderTransportDrain at most the caller's available retained capacity; unsupported transports must not drain anything.- Specified by:
pollEventsin interfaceProviderTransport
-
drain
- Specified by:
drainin interfaceProviderTransport
-
close
- Specified by:
closein interfaceProviderTransport
-