public abstract class ThreadAhead extends Thread implements Closeable
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier | Constructor and Description |
|---|---|
protected |
ThreadAhead(Closeable actual) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertHealthy() |
void |
close() |
protected void |
parkAWhile() |
protected void |
pokeReader() |
protected abstract boolean |
readAhead() |
void |
run() |
protected void |
waitUntilReadAhead() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected ThreadAhead(Closeable actual)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected void waitUntilReadAhead()
throws IOException
IOExceptionprotected void assertHealthy()
throws IOException
IOExceptionprotected void parkAWhile()
protected abstract boolean readAhead()
throws IOException
IOExceptionprotected void pokeReader()
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.