|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.nukesoft.core.DialogManager
The DialogManager handles distribution of incomming instant messages, creating a new Dialog object if necesary. It is also responsible for automatic destruction of Dialog objects after a set durration of inactivity.
Field Summary |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
DialogManager(int timeOut)
Builds the DialogManager. |
Method Summary | |
void |
handleIM(IM message,
CommPort cp)
Handles an inbound IM from the CommLib. |
void |
handleWarn(String screenName,
CommPort cp)
Handles an inbound warning from the CommPort. |
void |
shutdown()
Shuts down all Dialog, LineProc, and CommPort objects. |
void |
start()
Dialog maintnance thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DialogManager(int timeOut)
timeOut
- The number of seconds before a Dialog times out.Method Detail |
public void handleIM(IM message, CommPort cp)
handleIM
in interface CommPortCallback
message
- The message.CommPortCallback.handleIM(org.nukesoft.core.IM, org.nukesoft.commlib.CommPort)
public void handleWarn(String screenName, CommPort cp)
handleWarn
in interface CommPortCallback
screenName
- The screen name that did the warning.CommPortCallback.handleWarn(java.lang.String, org.nukesoft.commlib.CommPort)
public void shutdown()
public void start()
start
in class Thread
Thread.start()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |