org.drools.concurrent
Interface ExternalExecutorService.ObservableTask

All Known Implementing Classes:
ExternalExecutorService.ObservableCallable, ExternalExecutorService.ObservableRunnable
Enclosing class:
ExternalExecutorService

protected static interface ExternalExecutorService.ObservableTask

A super interface for ObservableTasks


Nested Class Summary
static class ExternalExecutorService.ObservableTask.TaskType
           
 
Method Summary
 void cancel()
          Prevents the execution of the ObservableTask if it did not started executing yet.
 ExternalExecutorService.ObservableTask.TaskType getType()
          Returns the type of this ObservableTask: either RUNNABLE or CALLABLE
 

Method Detail

getType

ExternalExecutorService.ObservableTask.TaskType getType()
Returns the type of this ObservableTask: either RUNNABLE or CALLABLE

Returns:

cancel

void cancel()
Prevents the execution of the ObservableTask if it did not started executing yet.



Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.