com.deltax.util.listener
Class BaseSignalSourceThread

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.deltax.util.listener.BaseSignalSourceThread
All Implemented Interfaces:
java.lang.Runnable

public abstract class BaseSignalSourceThread
extends java.lang.Thread

A base implementation of signal source, which is a thread in itself.

Version:
1.0
Author:
Cristiano Sadun

Field Summary
protected  BaseSignalSource bs
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
  BaseSignalSourceThread()
           
protected BaseSignalSourceThread(BaseSignalSource bs)
           
 
Method Summary
 void addListener(Listener listener)
           
 boolean isRegistered(Listener listener)
           
protected  void notify(Signal signal)
           
protected  void notifyException(ExceptionSignal exceptionsignal)
           
 void removeAllListeners()
           
 void removeListener(Listener listener)
           
 
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, 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

bs

protected BaseSignalSource bs
Constructor Detail

BaseSignalSourceThread

public BaseSignalSourceThread()

BaseSignalSourceThread

protected BaseSignalSourceThread(BaseSignalSource bs)
Method Detail

addListener

public void addListener(Listener listener)

isRegistered

public boolean isRegistered(Listener listener)

notify

protected void notify(Signal signal)

notifyException

protected void notifyException(ExceptionSignal exceptionsignal)

removeListener

public void removeListener(Listener listener)

removeAllListeners

public void removeAllListeners()