NullResourceManager class
NullResourceManager is a stub for tests and initialization of default values
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> -
Close closes the resource manager
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openConnection(
Direction dir, bool usefd, MultiAddr endpoint) → 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 peerId, Direction dir) → 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
-
toString(
) → String -
A string representation of this object.
inherited
-
viewPeer<
T> (PeerId peerId, 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 service, 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