public class BackPressureTracker extends Object
Tracks the BackPressure status.
Constructor and Description |
---|
BackPressureTracker(String workerId,
Map<Integer,JCQueue> localTasksToQueues) |
Modifier and Type | Method and Description |
---|---|
BackPressureStatus |
getCurrStatus() |
boolean |
recordBackPressure(Integer taskId)
Record BP for a task.
|
boolean |
refreshBpTaskList() |
public boolean recordBackPressure(Integer taskId)
Record BP for a task. This is called by transferLocalBatch() on NettyWorker thread
public boolean refreshBpTaskList()
public BackPressureStatus getCurrStatus()
Copyright © 2019 The Apache Software Foundation. All rights reserved.