public class PipeRegulator extends Object
| Constructor and Description |
|---|
PipeRegulator(int maxMsgPerMs,
int avgMsgSize)
Helper method so the scheduler can get the number of nanos that this stage should wait before reschedule.
|
| Modifier and Type | Method and Description |
|---|---|
static <S extends MessageSchema<S>> |
computeRateLimitDelay(Pipe<S> pipe,
long position,
PipeRegulator regulator) |
public PipeRegulator(int maxMsgPerMs,
int avgMsgSize)
maxMsgPerMs - public static <S extends MessageSchema<S>> long computeRateLimitDelay(Pipe<S> pipe, long position, PipeRegulator regulator)
Copyright © 2018. All Rights Reserved.