Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.gemini.blueprint.extender.internal.util.concurrent
Class RunnableTimedExecution

    java.lang.Object
      org.eclipse.gemini.blueprint.extender.internal.util.concurrent.RunnableTimedExecution

    public abstract class RunnableTimedExecution

extends Object

Utility class that executes the given Runnable task on the given task executor or , if none is given, to a new thread.

If the thread does not return in the given amount of time, it will be interrupted and a logging message sent.

This class is intended for usage inside the framework, mainly by the extender package for controlling runaway threads.

Author:
  Costin Leau
See Also:
  `Counter`, `Thread`

Constructor Summary
`RunnableTimedExecution()`

Method Summary
`static boolean` | `execute(Runnable task, long waitTime)`
`static boolean` | `execute(Runnable task, long waitTime, org.springframework.core.task.TaskExecutor taskExecutor)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### RunnableTimedExecution

    public RunnableTimedExecution()

Method Detail

### execute

    public static boolean execute(Runnable task,
                                  long waitTime)

### execute

    public static boolean execute(Runnable task,
                                  long waitTime,
                                  org.springframework.core.task.TaskExecutor taskExecutor)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2013. All Rights Reserved.