public class ThreadedFileIOBase
extends java.lang.Object
implements java.lang.Runnable
Modifier and Type | Field and Description |
---|---|
private boolean |
isThreadWaiting |
private long |
savedIOCounter |
private static ThreadedFileIOBase |
threadedIOInstance
Instance of ThreadedFileIOBase
|
private java.util.List<IThreadedFileIO> |
threadedIOQueue |
private long |
writeQueuedCounter |
Modifier | Constructor and Description |
---|---|
private |
ThreadedFileIOBase() |
Modifier and Type | Method and Description |
---|---|
static ThreadedFileIOBase |
getThreadedIOInstance()
Retrieves an instance of the threadedFileIOBase.
|
private void |
processQueue()
Process the items that are in the queue
|
void |
queueIO(IThreadedFileIO p_75735_1_)
threaded io
|
void |
run() |
void |
waitForFinish() |
private static final ThreadedFileIOBase threadedIOInstance
private java.util.List<IThreadedFileIO> threadedIOQueue
private volatile long writeQueuedCounter
private volatile long savedIOCounter
private volatile boolean isThreadWaiting
public static ThreadedFileIOBase getThreadedIOInstance()
public void run()
run
in interface java.lang.Runnable
private void processQueue()
public void queueIO(IThreadedFileIO p_75735_1_)
public void waitForFinish() throws java.lang.InterruptedException
java.lang.InterruptedException