- Timestamp:
- 09/10/13 21:11:41 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/util/dispatching/Dispatching.java
r102 r105 7 7 import org.apache.logging.log4j.LogManager; 8 8 9 import com.framsticks.util.ExceptionHandler; 9 10 import com.framsticks.util.FramsticksException; 10 11 import com.framsticks.util.Misc; … … 141 142 } 142 143 143 public interface Query<T> extends Exception ResultHandler {144 public interface Query<T> extends ExceptionHandler { 144 145 T get(); 145 146 } 146 147 147 148 public static abstract class QueryHandler<T> implements Query<T> { 148 Exception ResultHandler handler;149 ExceptionHandler handler; 149 150 150 151 /** 151 152 * @param handler 152 153 */ 153 public QueryHandler(Exception ResultHandler handler) {154 public QueryHandler(ExceptionHandler handler) { 154 155 this.handler = handler; 155 156 } … … 244 245 245 246 protected final double timeOut; 246 protected final Exception ResultHandler handler;247 protected final ExceptionHandler handler; 247 248 248 249 /** 249 250 * @param timeOut 250 251 */ 251 public Waiter(double timeOut, Exception ResultHandler handler) {252 public Waiter(double timeOut, ExceptionHandler handler) { 252 253 this.timeOut = timeOut; 253 254 this.handler = handler; … … 273 274 } 274 275 275 public <T> Future <T> passInFuture(Class<T> type) {276 return new Future Handler<T>(handler) {276 public <T> FutureHandler<T> passInFuture(Class<T> type) { 277 return new Future<T>(handler) { 277 278 @Override 278 279 protected void result(T result) {
Note: See TracChangeset
for help on using the changeset viewer.