ResourceManagerImpl class
- Implemented types
Constructors
- ResourceManagerImpl.new({Limiter? limiter})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- limiter → Limiter
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- systemScope → SystemScopeImpl
-
no setter
Methods
-
clearStickyPeer(
PeerId peer) → void -
clearStickyProtocol(
ProtocolID proto) → void -
close(
) → Future< void> -
Close closes the resource manager
override
-
getPeerScopeInternal(
PeerId peer) → PeerScopeImpl -
getProtocolScopeInternal(
ProtocolID protocol) → ProtocolScopeImpl -
getServiceScopeInternal(
String service) → ServiceScopeImpl -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openConnection(
Direction direction, bool useFd, MultiAddr remoteAddr) → Future< ConnManagementScope> -
OpenConnection creates a new connection scope not yet associated with any peer; the connection
is scoped at the transient scope.
The caller owns the returned scope and is responsible for calling Done in order to signify
the end of the scope's span.
override
-
openStream(
PeerId peer, Direction direction) → Future< StreamManagementScope> -
OpenStream creates a new stream scope, initially unnegotiated.
An unnegotiated stream will be initially unattached to any protocol scope
and constrained by the transient scope.
The caller owns the returned scope and is responsible for calling Done in order to signify
the end of th scope's span.
override
-
setStickyPeer(
PeerId peer) → void -
setStickyProtocol(
ProtocolID proto) → void -
toString(
) → String -
A string representation of this object.
inherited
-
viewPeer<
T> (PeerId peer, Future< T> f(PeerScope scope)) → Future<T> -
ViewPeer views the resource management scope for a specific peer.
override
-
viewProtocol<
T> (ProtocolID protocol, Future< T> f(ProtocolScope scope)) → Future<T> -
ViewProtocol views the resource management scope for a specific protocol.
override
-
viewService<
T> (String serviceName, Future< T> f(ServiceScope scope)) → Future<T> -
ViewService retrieves a service-specific scope.
override
-
viewSystem<
T> (Future< T> f(ResourceScope scope)) → Future<T> -
ViewSystem views the system-wide resource scope.
override
-
viewTransient<
T> (Future< T> f(ResourceScope scope)) → Future<T> -
ViewTransient views the transient (DMZ) resource scope.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited