org.apache.mina.util

Class NamePreservingRunnable

Implemented Interfaces:
Runnable

public class NamePreservingRunnable
extends java.lang.Object
implements Runnable

A Runnable wrapper that preserves the name of the thread after the runnable is complete (for Runnables that change the name of the Thread they use.)

Constructor Summary

NamePreservingRunnable(Runnable runnable, String newName)

Method Summary

void
run()

Constructor Details

NamePreservingRunnable

public NamePreservingRunnable(Runnable runnable,
                              String newName)

Method Details

run

public void run()