xmlBlaster 2.1.0 API

org.xmlBlaster.client.protocol.socket
Class WorkerThread

java.lang.Object
  extended by java.lang.Thread
      extended by org.xmlBlaster.client.protocol.socket.WorkerThread
All Implemented Interfaces:
java.lang.Runnable

public class WorkerThread
extends java.lang.Thread

Takes a received messages and invokes the desired action.

Usually this is an update() or probably a ping()


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
private  SocketCallbackImpl cbHandler
          The manager class, my creator and my destiny
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
private  MsgInfo parser
          Contains the received message
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
WorkerThread(Global glob, SocketCallbackImpl cbHandler, MsgInfo receiver)
          Creates the thread.
 
Method Summary
 void run()
          Starts the thread which calls update() into client code.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ME

private final java.lang.String ME

log

private static java.util.logging.Logger log

parser

private final MsgInfo parser
Contains the received message


cbHandler

private final SocketCallbackImpl cbHandler
The manager class, my creator and my destiny

Constructor Detail

WorkerThread

public WorkerThread(Global glob,
                    SocketCallbackImpl cbHandler,
                    MsgInfo receiver)
Creates the thread.

Method Detail

run

public void run()
Starts the thread which calls update() into client code.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.