1 package org.jacorb.notification.engine; 2 3 23 24 import org.jacorb.notification.interfaces.IProxyPushSupplier; 25 import org.jacorb.notification.interfaces.Message; 26 import org.jacorb.notification.interfaces.MessageSupplier; 27 28 32 33 34 public interface TaskProcessor 35 { 36 TaskFactory getTaskFactory(); 37 38 39 TaskExecutor getFilterTaskExecutor(); 40 41 42 46 void processMessage( Message mesg ); 47 48 49 56 void scheduleTimedPullTask( MessageSupplier dest ) 57 throws InterruptedException ; 58 59 68 void schedulePushOperation( IProxyPushSupplier consumer ) 69 throws InterruptedException ; 70 71 75 76 77 Object executeTaskPeriodically( long intervall, 78 Runnable task, 79 boolean startImmediately ); 80 81 82 void cancelTask( Object id ); 83 84 85 Object executeTaskAfterDelay( long delay, Runnable task ); 86 87 89 } 90 | Popular Tags |