org.dfdaemon.il2.core.task
Interface CoreTaskExecutionCallback

All Known Implementing Classes:
CoreTaskExecutorImpl

public interface CoreTaskExecutionCallback

Interface CoreTaskExecutionCallback can be provided to CoreTaskExecutorImpl.submit(CoreTask,CoreTaskExecutionCallback) to override default handler.

Author:
aka50 Created on 04.05.2007

Field Summary
static CoreTaskExecutionCallback EMPTY
           
 
Method Summary
 void onTaskCompletition(CoreTask task)
          Succesfull task completition.
 void onTaskCrash(CoreTask task, Throwable t)
          Task crashed.
 

Field Detail

EMPTY

static final CoreTaskExecutionCallback EMPTY
Method Detail

onTaskCrash

void onTaskCrash(CoreTask task,
                 Throwable t)
Task crashed.

Parameters:
task - crashed instance of type CoreTask
t - of type Throwable

onTaskCompletition

void onTaskCompletition(CoreTask task)
Succesfull task completition.

Parameters:
task - of type CoreTask


Copyright © 2007-2008. All Rights Reserved.