Resources class
Resources manages the resources for the relay service.
Constructors
Properties
- connectionData → int
-
The maximum data transfer for connections in bytes.
final
- connectionDuration → int
-
The maximum duration for connections in seconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxConnections → int
-
The maximum number of concurrent connections.
final
- maxReservations → int
-
The maximum number of concurrent reservations.
final
- reservationTtl → int
-
The time-to-live for reservations in seconds.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addConnection(
PeerId src, PeerId dst) → void - Adds a connection for a peer.
-
addReservation(
PeerId peer) → void - Adds a reservation for a peer.
-
canConnect(
PeerId src, PeerId dst) → bool - Checks if a peer can make a connection.
-
canReserve(
PeerId peer) → bool - Checks if a peer can make a reservation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeConnection(
PeerId src, PeerId dst) → void - Removes a connection for a peer.
-
removeReservation(
PeerId peer) → void - Removes a reservation for a peer.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited