Package com.arcadedb.engine
Class PageManagerFlushThread
- java.lang.Object
-
- java.lang.Thread
-
- com.arcadedb.engine.PageManagerFlushThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description ArrayBlockingQueue<List<MutablePage>>
queue
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description PageManagerFlushThread(PageManager pageManager, ContextConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
isSuspended()
void
run()
void
scheduleFlushOfPages(List<MutablePage> pages)
void
setSuspended(boolean value)
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
queue
public final ArrayBlockingQueue<List<MutablePage>> queue
-
-
Constructor Detail
-
PageManagerFlushThread
public PageManagerFlushThread(PageManager pageManager, ContextConfiguration configuration)
-
-
Method Detail
-
scheduleFlushOfPages
public void scheduleFlushOfPages(List<MutablePage> pages) throws InterruptedException
- Throws:
InterruptedException
-
setSuspended
public void setSuspended(boolean value)
-
isSuspended
public boolean isSuspended()
-
close
public void close()
-
-