org.dcm4che2.net
Class NewThreadExecutor

java.lang.Object
  extended by org.dcm4che2.net.NewThreadExecutor
All Implemented Interfaces:
java.util.concurrent.Executor

public class NewThreadExecutor
extends java.lang.Object
implements java.util.concurrent.Executor

Executor implementation which executes a Runnable object in a new thread.

Since:
Oct 2, 2005
Version:
$Reversion$ $Date: 2008-09-06 14:52:22 +0200 (Sat, 06 Sep 2008) $
Author:
gunter zeilinger(gunterze@gmail.com)

Constructor Summary
NewThreadExecutor(java.lang.String threadNamePrefix)
          Constructor.
 
Method Summary
 void execute(java.lang.Runnable runnable)
          This implementatin creates a new thread every time it is called.
 java.lang.String getThreadNamePrefix()
          Get the prefix that is prepended to threads created by this Executor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewThreadExecutor

public NewThreadExecutor(java.lang.String threadNamePrefix)
Constructor.

Parameters:
threadNamePrefix - A String containing the prefix that should be given to the created thread.
Method Detail

getThreadNamePrefix

public final java.lang.String getThreadNamePrefix()
Get the prefix that is prepended to threads created by this Executor

Returns:
A String containing the prefix.

execute

public void execute(java.lang.Runnable runnable)
This implementatin creates a new thread every time it is called.

Specified by:
execute in interface java.util.concurrent.Executor
See Also:
org.dcm4che2.net.Executor#execute(java.lang.Runnable)


Copyright © 2011 dcm4che. All Rights Reserved.