Package kong.unirest.core.java
Class Prefetcher
- java.lang.Object
-
- kong.unirest.core.java.Prefetcher
-
class Prefetcher extends java.lang.ObjectSimple class for encapsulating prefetch logic used across subscribers.
-
-
Field Summary
Fields Modifier and Type Field Description private intprefetchstatic intPREFETCHstatic intPREFETCH_THRESHOLDprivate intprefetchThresholdprivate intupstreamWindow
-
Constructor Summary
Constructors Constructor Description Prefetcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intcurrentWindow()voidinitialize(Upstream upstream)voidupdate(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
-
-