Package kong.unirest.core.java
Class Prefetcher
- java.lang.Object
-
- kong.unirest.core.java.Prefetcher
-
class Prefetcher extends java.lang.Object
Simple class for encapsulating prefetch logic used across subscribers.
-
-
Field Summary
Fields Modifier and Type Field Description private int
prefetch
static int
PREFETCH
static int
PREFETCH_THRESHOLD
private int
prefetchThreshold
private int
upstreamWindow
-
Constructor Summary
Constructors Constructor Description Prefetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
currentWindow()
void
initialize(Upstream upstream)
void
update(Upstream upstream)
-
-
-
Field Detail
-
PREFETCH
public static final int PREFETCH
- See Also:
- Constant Field Values
-
PREFETCH_THRESHOLD
public static final int PREFETCH_THRESHOLD
- See Also:
- Constant Field Values
-
prefetch
private final int prefetch
-
prefetchThreshold
private final int prefetchThreshold
-
upstreamWindow
private volatile int upstreamWindow
-
-