Klasse OwnerRuntime

java.lang.Object
de.delinkedde.pipes.registry.OwnerRuntime

public final class OwnerRuntime extends Object
In-memory representation of one owner and all the storage networks they own.

Grouping by owner is the first level of the transport fairness rotation and enforces the owner-isolation rule: an owner's signs can never see another owner's networks. In this phase it is a keyed collection of NetworkRuntimes; the round-robin cursor over networks is added when transport scheduling arrives.

Confined to the main server thread.

Seit:
0.1.0
  • Konstruktordetails

    • OwnerRuntime

      public OwnerRuntime(UUID ownerId)
      Creates an owner runtime with no networks.
      Parameter:
      ownerId - the owning player's UUID; never null
  • Methodendetails

    • ownerId

      public UUID ownerId()
      Gibt the owning player's UUID zurück.
      Gibt zurück:
      the owning player's UUID
    • network

      public NetworkRuntime network(UUID networkId)
      Returns a network of this owner by id.
      Parameter:
      networkId - the network id
      Gibt zurück:
      the network, or null if this owner has no such network
    • defaultNetwork

      public NetworkRuntime defaultNetwork()
      Returns this owner's earliest-created network, treated as the default for newly created signs.
      Gibt zurück:
      the default network, or null if the owner has none yet
    • networks

      public Collection<NetworkRuntime> networks()
      Returns this owner's networks. The returned collection is an unmodifiable live view.
      Gibt zurück:
      the networks
    • networkCount

      public int networkCount()
      Gibt the number of networks this owner has zurück.
      Gibt zurück:
      the number of networks this owner has
    • networkCursor

      public int networkCursor()
      Returns the round-robin cursor used to rotate over this owner's networks.
      Gibt zurück:
      the current network cursor
    • networkCursor

      public void networkCursor(int networkCursor)
      Sets the network round-robin cursor.
      Parameter:
      networkCursor - the new cursor value