Class ProviderTransport.HostProfileSnapshot

java.lang.Object
org.cloudburstmc.netty.signaling.ProviderTransport.HostProfileSnapshot
Enclosing interface:
ProviderTransport

public static final class ProviderTransport.HostProfileSnapshot extends Object
Immutable profile bytes plus an endpoint-material ownership guard. The guard throws IllegalStateException after native retirement, or HostProfileSnapshotChangedException after live semantic replacement; it must never wait, acquire a monitor or perform I/O.
  • Constructor Details

    • HostProfileSnapshot

      public HostProfileSnapshot(com.google.gson.JsonObject profile, Runnable requireCurrent)
    • HostProfileSnapshot

      public HostProfileSnapshot(com.google.gson.JsonObject profile, long candidateRevision, Runnable requireCurrent)
    • HostProfileSnapshot

      public HostProfileSnapshot(com.google.gson.JsonObject profile, long candidateRevision, long publicationVersion, Runnable requireCurrent)
    • HostProfileSnapshot

      public HostProfileSnapshot(com.google.gson.JsonObject profile, long candidateRevision, long publicationVersion, com.google.gson.JsonArray probeCandidates, Set<Integer> assistedFamilies, Runnable requireCurrent)
  • Method Details

    • profile

      public com.google.gson.JsonObject profile()
    • probeCandidates

      public com.google.gson.JsonArray probeCandidates()
    • assistedFamilies

      public Set<Integer> assistedFamilies()
      Families eligible for assistance when explicitly enabled by ProviderClient configuration.
    • candidateRevision

      public long candidateRevision()
      Zero means this adapter has no revisioned native capture.
    • publicationVersion

      public long publicationVersion()
    • requireCurrent

      public void requireCurrent()