1 22 package org.jboss.util.threadpool; 23 24 30 public interface Task 31 { 32 34 35 static final int WAIT_NONE = 0; 36 37 38 static final int WAIT_FOR_START = 1; 39 40 41 static final int WAIT_FOR_COMPLETE = 2; 42 43 45 50 int getWaitType(); 51 52 57 int getPriority(); 58 59 64 long getStartTimeout(); 65 66 71 long getCompletionTimeout(); 72 73 76 void execute(); 77 78 81 void stop(); 82 83 88 void accepted(long time); 89 90 96 void rejected(long time, Throwable t); 97 98 103 void started(long time); 104 105 111 void completed(long time, Throwable t); 112 113 } 115 | Popular Tags |