de.jiac.micro.core.scope
Class AbstractScopeAwareRunner

java.lang.Object
  extended by com.github.libxjava.concurrent.AbstractSingleThreadRunner
      extended by de.jiac.micro.core.scope.AbstractScopeAwareRunner

public abstract class AbstractScopeAwareRunner
extends com.github.libxjava.concurrent.AbstractSingleThreadRunner

Utility class that creates automatically a scope-aware thread for runner.

Version:
$Revision:$
Author:
Marcel Patzlaff

Field Summary
 
Fields inherited from class com.github.libxjava.concurrent.AbstractSingleThreadRunner
STARTED, STOPPED
 
Constructor Summary
protected AbstractScopeAwareRunner(String name)
           
 
Method Summary
protected abstract  void doRun()
           
protected  void forkExecution(Runnable runnable, String name)
           
 
Methods inherited from class com.github.libxjava.concurrent.AbstractSingleThreadRunner
getName, isCancelled, isInState, start, stop, unblock, waitForState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScopeAwareRunner

protected AbstractScopeAwareRunner(String name)
Method Detail

forkExecution

protected void forkExecution(Runnable runnable,
                             String name)
Overrides:
forkExecution in class com.github.libxjava.concurrent.AbstractSingleThreadRunner

doRun

protected abstract void doRun()
Specified by:
doRun in class com.github.libxjava.concurrent.AbstractSingleThreadRunner


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.