1 23 24 package javax.resource.spi.work; 25 26 import java.lang.Object ; 27 import java.lang.Runnable ; 28 import java.lang.Exception ; 29 import java.lang.Throwable ; 30 31 83 public interface WorkManager { 84 85 89 long IMMEDIATE = 0L; 90 91 96 long INDEFINITE = Long.MAX_VALUE; 97 98 102 long UNKNOWN = -1; 103 104 121 void doWork(Work work) throws WorkException ; 123 124 153 void doWork(Work work, long startTimeout, 154 ExecutionContext execContext, WorkListener workListener) 155 throws WorkException ; 156 157 176 long startWork(Work work) throws WorkException ; 178 179 213 long startWork(Work work, long startTimeout, 214 ExecutionContext execContext, WorkListener workListener) 215 throws WorkException ; 216 217 231 void scheduleWork(Work work) throws WorkException ; 233 234 261 void scheduleWork(Work work, long startTimeout, 262 ExecutionContext execContext, WorkListener workListener) 263 throws WorkException ; 264 } 265 | Popular Tags |