|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
com.ibm.websphere.samples.asynchbeans.wstrader.applet.StreamerHandler
public class StreamerHandler
The WebSphere Trader Client interface to the remote HTTP server. We use a singleton StreamerHandler so that all applets in a single JVM only have one HTTP connection open.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary |
---|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Method Summary | |
---|---|
void |
addNotificationListener(NotificationListener listener)
Register a listener to this broadcaster. |
void |
cancel()
Cancel this thread. |
static StreamerHandler |
create(java.net.URL codeBase,
java.util.Hashtable tickerLookup,
java.lang.String name,
java.lang.String dftSymbols,
java.lang.String cookie)
Create a new singleton ServerMonitor or get the currently created on if one already exists |
boolean |
getCancelled()
True if we have been asked to cancel the thread. |
static StreamerHandler |
getSelf()
Get the singleton StreamerHandler |
java.lang.String |
getStreamerName()
Retreive the name of this streamer |
void |
removeNotificationListener(NotificationListener listener)
Remove the specified listener from this broadcaster. |
void |
run()
|
Methods inherited from class java.lang.Thread |
---|
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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static StreamerHandler create(java.net.URL codeBase, java.util.Hashtable tickerLookup, java.lang.String name, java.lang.String dftSymbols, java.lang.String cookie)
public static StreamerHandler getSelf()
public void cancel()
public java.lang.String getStreamerName()
public boolean getCancelled()
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
Thread.run()
public void addNotificationListener(NotificationListener listener)
NotificationBroadcaster
addNotificationListener
in interface NotificationBroadcaster
NotificationBroadcaster.addNotificationListener(NotificationListener)
public void removeNotificationListener(NotificationListener listener)
NotificationBroadcaster
removeNotificationListener
in interface NotificationBroadcaster
NotificationBroadcaster.removeNotificationListener(NotificationListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |