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 -
Method Summary
Modifier and TypeMethodDescriptionassistedJoin(AssistedJoin join, Runnable requireCurrent) static StringlongCheap 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.channel()close()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()installAdmissionKeys(List<AdmissionKey> keys) Atomic native snapshot installation.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, 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>pollEvents(int maximum) Drains at mostmaximumticket-correlated transport observations.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.
-
Method Details
-
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, 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
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
-
supportsAssistedJoins
public boolean supportsAssistedJoins()- Specified by:
supportsAssistedJoinsin interfaceProviderTransport
-
assistedJoin
- Specified by:
assistedJoinin interfaceProviderTransport
-
captureHostProfile
Description copied from interface:ProviderTransportThe host profile exported from actual bound native metadata, with endpoint ownership held across asynchronous publication, persistence and application.- Specified by:
captureHostProfilein interfaceProviderTransport
-
installAdmissionKeys
Description copied from interface:ProviderTransportAtomic native snapshot installation. Durable application storage remains the caller's responsibility.- Specified by:
installAdmissionKeysin interfaceProviderTransport
-
pollEvents
Description copied from interface:ProviderTransportDrains at mostmaximumticket-correlated transport observations.- Specified by:
pollEventsin interfaceProviderTransport
-
drain
- Specified by:
drainin interfaceProviderTransport
-
close
- Specified by:
closein interfaceProviderTransport
-