RateLimiterPipe<T> class
Constructors
- RateLimiterPipe({int maxRequests = 100, Duration duration = const Duration(minutes: 1), bool autoCleanup = true})
Properties
- duration → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxRequests → int
-
final
-
read
→ Stream<
NetworkerPacket< T> > -
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
write
→ Stream<
NetworkerPacket< T> > -
no setterinherited
Methods
-
cleanup(
) → void -
connect(
NetworkerPipe< T, dynamic> pipe) → void -
inherited
-
decode(
T data) → T -
inherited
-
decodeChannel(
T data, Channel channel) → FutureOr< (T, Channel)?> -
disconnect(
NetworkerPipe< T, dynamic> pipe) → void -
inherited
-
dispose(
) → void - Disposes all stream controllers and disconnects all connected pipes.
-
encode(
T data) → T -
inherited
-
encodeChannel(
T data, Channel channel) → FutureOr< (T, Channel)?> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onMessage(
T data, [Channel channel = kAnyChannel]) → Future< void> -
inherited
-
sendMessage(
T data, [Channel channel = kAnyChannel]) → Future< void> -
inherited
-
sendPacket(
T data, Channel channel) → FutureOr< void> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited