|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
com.retrogui.messageserver.server.AbstractServerApplication
Abstract base class to provide some basic implementation
| Field Summary |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
AbstractServerApplication(MessageServer messageServer,
Session psession,
java.lang.Object pconfigurationObject)
Creates a new AbstractServerApplication object. |
|
| Method Summary | |
java.lang.Object |
getConfigurationObject()
getter |
Message |
getMessage(boolean blockUntilMessage)
get a message. |
MessageServer |
getMessageServer()
getter |
Session |
getSession()
getter |
abstract void |
run()
main application loop - subclass must provide implementation |
void |
sendMessage(Message msg)
send a message. |
| 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, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, 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 AbstractServerApplication(MessageServer messageServer,
Session psession,
java.lang.Object pconfigurationObject)
messageServer - psession - pconfigurationObject - | Method Detail |
public abstract void run()
public void sendMessage(Message msg)
throws SessionException
msg - - a message
SessionException
public Message getMessage(boolean blockUntilMessage)
throws SessionException
blockUntilMessage - - if true then method blocks until a message
arrives. if false then the method will immediately with either a
message object or null
SessionExceptionpublic Session getSession()
public java.lang.Object getConfigurationObject()
public MessageServer getMessageServer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||