Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
Object |
Lock |
long |
msLastUsed |
long |
msStartNextThread |
RequestInfo |
requestInfo |
boolean |
startedNextThread |
boolean |
stopCalled |
boolean |
watingOnLock |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
OARemoteThread() |
OARemoteThread(Runnable r) |
Modifier and Type | Method and Description |
---|---|
void |
addRunnable(Runnable r)
By default, this will call r.run().
|
boolean |
getAllowRunnable() |
boolean |
getSendMessages() |
boolean |
isWaitingOnLock() |
void |
reset()
called before processing the next OASync message.
|
void |
setAllowRunnable(boolean b)
Flag to know if the addRunnable was overwritten to handle in another thread (pool).
|
void |
setSendMessages(boolean b)
Any OAsync changes (OAObject/Hub) that are made within an OARemoteThread will not be broadcast to other computers, since they will
also be processing the same originating message.
|
void |
setStartedNextThread(boolean b) |
void |
setWaitingOnLock(boolean b)
Flag to know if this thread is waiting on a lock set by OATreadLocalDelegate.
|
boolean |
startedNextThread() |
void |
startNextThread()
Called once this thread has reached it's main "mark" for the method that it is
running, so that a new thread can process the next message.
|
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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public final Object Lock
public volatile boolean stopCalled
public volatile RequestInfo requestInfo
public volatile boolean startedNextThread
public volatile boolean watingOnLock
public volatile long msStartNextThread
public volatile long msLastUsed
public OARemoteThread()
public OARemoteThread(Runnable r)
public void setAllowRunnable(boolean b)
public boolean getAllowRunnable()
public void addRunnable(Runnable r)
public void startNextThread()
public boolean startedNextThread()
public void setSendMessages(boolean b)
public boolean getSendMessages()
public void setWaitingOnLock(boolean b)
b
- public boolean isWaitingOnLock()
public void setStartedNextThread(boolean b)
public void reset()
Copyright © 1999–2025 ViaOA. All rights reserved.