NullScope class
NullScope is a stub for tests and initialization of default values
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setteroverride
- peer → PeerId
-
no setteroverride
- peerScope → PeerScope
-
no setteroverride
- protocol → ProtocolID
-
no setteroverride
- protocolScope → ProtocolScope?
-
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceScope → ServiceScope?
-
no setteroverride
- stat → ScopeStat
-
Stat retrieves current resource usage for the scope.
no setteroverride
Methods
-
beginSpan(
) → Future< ResourceScopeSpan> -
BeginSpan creates a new span scope rooted at this scope.
override
-
done(
) → void -
Done ends the span and releases associated resources.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
releaseMemory(
int size) → void -
ReleaseMemory explicitly releases memory previously reserved with ReserveMemory.
override
-
reserveMemory(
int size, int priority) → Future< void> -
ReserveMemory reserves memory/buffer space in the scope; the unit is bytes.
override
-
setPeer(
PeerId peerId) → Future< void> -
override
-
setProtocol(
ProtocolID protocol) → Future< void> -
override
-
setService(
String service) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited