net.sf.asyncobjects.vats
Interface ThreadBasedRunner

All Superinterfaces:
VatFactory
All Known Implementing Classes:
NIOSelectorRunner, SingleThreadIdleRunner, SingleThreadRunner

public interface ThreadBasedRunner
extends VatFactory

This interface is supported by runners that might occupy the thread.

Author:
const

Method Summary
 void resumeInCurrentThread()
          This methods resumes the suspended runner in the current thread.
 void startInCurrentThread()
          Start runner in the current thread.
 void startInNewThread()
          Start runner in new thread
 void stop()
          Stop this runner
 void suspend()
          This method cases the runner to suspend its work.
 
Methods inherited from interface net.sf.asyncobjects.vats.VatFactory
newVat, newVat
 

Method Detail

stop

void stop()
Stop this runner


startInCurrentThread

void startInCurrentThread()
Start runner in the current thread.


startInNewThread

void startInNewThread()
Start runner in new thread


suspend

void suspend()
This method cases the runner to suspend its work.


resumeInCurrentThread

void resumeInCurrentThread()
This methods resumes the suspended runner in the current thread.



Copyright 2002-2007 Constantine Plotnikov. All Rights Reserved.