java.lang.Runnable
public final class MessageThread
extends java.lang.Thread
Frontier.receivedURLs
into the Frontier
itself (via the
Frontier.enqueue(it.unimi.dsi.fastutil.bytes.ByteArrayList)
method). The run()
method performs a busy polling on the Frontier.receivedURLs
queue, at exponentially spaced time intervals (but anyway not less infrequently than 1s).Modifier and Type | Field | Description |
---|---|---|
boolean |
stop |
When set to true, this thread will complete its execution.
|
Constructor | Description |
---|---|
MessageThread(Frontier frontier) |
Creates the thread.
|
Modifier and Type | Method | Description |
---|---|---|
void |
run() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public volatile boolean stop
public MessageThread(Frontier frontier)
frontier
- the frontier instantiating this thread.