public class Reader extends Object
adjustThreads().| Constructor and Description |
|---|
Reader(RouterContext ctx)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
void | adjustThreads()Dynamically adjust thread count to match the target. |
void | connectionClosed(NTCPConnection con)Description. |
int | getActiveCount()Get the number of threads currently processing (not parked). |
static int | getThreadCount()Get the reader thread count |
double | getUtilization()Get reader pool utilization as a ratio (0.0-1.0). |
static void | setThreadCount(int count)Set the reader thread count, bounded by MIN_THREADS-MAX_THREADS |
void | startReading(int numReaders)Description. |
void | stopReading()Description. |
void | wantsRead(NTCPConnection con)Description. |
public Reader(RouterContext ctx)
public void adjustThreads()
public void connectionClosed(NTCPConnection con)
public int getActiveCount()
public static int getThreadCount()
public double getUtilization()
public static void setThreadCount(int count)
public void startReading(int numReaders)
public void stopReading()
public void wantsRead(NTCPConnection con)