Package de.delinkedde.pipes.registry
Klasse OwnerRuntime
java.lang.Object
de.delinkedde.pipes.registry.OwnerRuntime
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
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns this owner's earliest-created network, treated as the default for newly created signs.Returns a network of this owner by id.intGibt the number of networks this owner has zurück.intReturns the round-robin cursor used to rotate over this owner's networks.voidnetworkCursor(int networkCursor) Sets the network round-robin cursor.networks()Returns this owner's networks.ownerId()Gibt the owning player'sUUIDzurück.
-
Konstruktordetails
-
OwnerRuntime
Creates an owner runtime with no networks.- Parameter:
ownerId- the owning player'sUUID; nevernull
-
-
Methodendetails
-
ownerId
Gibt the owning player'sUUIDzurück.- Gibt zurück:
- the owning player's
UUID
-
network
Returns a network of this owner by id.- Parameter:
networkId- the network id- Gibt zurück:
- the network, or
nullif this owner has no such network
-
defaultNetwork
Returns this owner's earliest-created network, treated as the default for newly created signs.- Gibt zurück:
- the default network, or
nullif the owner has none yet
-
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
-