ConnectionScopeImpl class
- Inheritance
-
- Object
- ResourceScopeImpl
- ConnectionScopeImpl
- Implemented types
Constructors
-
ConnectionScopeImpl.new(ResourceManagerImpl _rcmgr, Limit limit, String name, Direction direction, bool useFd, MultiAddr remoteEndpoint, {List<
ResourceScopeImpl> ? edges})
Properties
- direction → Direction
-
final
-
edges
↔ List<
ResourceScopeImpl> -
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
finalinherited
- peerScope → PeerScope?
-
no setteroverride
- remoteEndpoint → MultiAddr
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stat → ScopeStat
-
Stat retrieves current resource usage for the scope.
no setterinherited
- useFd → bool
-
final
Methods
-
addConn(
Direction dir, bool usefd) → void -
inherited
-
addStream(
Direction dir) → void -
inherited
-
beginSpan(
) → Future< ResourceScopeSpan> -
BeginSpan creates a new span scope rooted at this scope.
inherited
-
decRef(
) → void -
inherited
-
done(
) → void -
Done ends the span and releases associated resources.
inherited
-
incRef(
) → void -
inherited
-
isUnused(
) → bool -
inherited
-
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.
inherited
-
removeConn(
Direction dir, bool usefd) → void -
inherited
-
removeStream(
Direction dir) → void -
inherited
-
reserveMemory(
int size, int priority) → Future< void> -
ReserveMemory reserves memory/buffer space in the scope; the unit is bytes.
inherited
-
setPeer(
PeerId peerId) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited