org.clazzes.util.sched
Interface HasCallback<C>

All Known Subinterfaces:
IJobStatusWithCallback<C>

public interface HasCallback<C>

Jobs implementing this interface provide an application-specific callback object, on which the job might give back information to the caller.


Method Summary
 C getCallback()
           
 Class<C> getCallbackClass()
           
 

Method Detail

getCallback

C getCallback()
Returns:
The callback object, which will be provided to users of the scheduler via IJobStatusWithCallback.

getCallbackClass

Class<C> getCallbackClass()
Returns:
The class object of the callback interface, which allows to query the callback interface at runtime.


Copyright © 2012. All Rights Reserved.