net.sf.ehcache.distribution.jgroups
Class ThreadNamingRunnable

java.lang.Object
  extended by net.sf.ehcache.distribution.jgroups.ThreadNamingRunnable
All Implemented Interfaces:
Runnable

public abstract class ThreadNamingRunnable
extends Object
implements Runnable

Basic Runnable that sets the name of the thread doing the execution

Author:
Eric Dalquist

Field Summary
protected  String threadNameSuffix
          The suffix that will be appended to the thread name when the runnable is executing
 
Constructor Summary
ThreadNamingRunnable(String threadNameSuffix)
          Create new ThreadNamingRunnable with the specified suffix
 
Method Summary
 void run()
          
abstract  void runInternal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadNameSuffix

protected final String threadNameSuffix
The suffix that will be appended to the thread name when the runnable is executing

Constructor Detail

ThreadNamingRunnable

public ThreadNamingRunnable(String threadNameSuffix)
Create new ThreadNamingRunnable with the specified suffix

Method Detail

run

public final void run()

Specified by:
run in interface Runnable

runInternal

public abstract void runInternal()
See Also:
Runnable.run()


Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.