Removed MessageHandlerRejectedExecutionException as it is no longer used, and moved MessageListMethodAdapter to the 'aggregator' package since that is the only place it is used (and it may be refactored away).

This commit is contained in:
Mark Fisher
2008-09-22 22:28:18 +00:00
parent 8a103b7ec5
commit f07c7fc2fd
5 changed files with 1 additions and 66 deletions

View File

@@ -51,30 +51,6 @@ public abstract class TestHandlers {
};
}
/**
* Create a handler that throws a {@link MessageHandlerRejectedExecutionException}.
*/
public final static Object rejectingHandler() {
return new Object() {
public Message<?> handle(Message<?> message) {
throw new MessageHandlerRejectedExecutionException(message);
}
};
}
/**
* Create a handler that counts down on the provided latch and
* then throws a {@link MessageHandlerRejectedExecutionException}.
*/
public final static Object rejectingCountDownHandler(final CountDownLatch latch) {
return new Object() {
public Message<?> handle(Message<?> message) {
latch.countDown();
throw new MessageHandlerRejectedExecutionException(message);
}
};
}
/**
* Create a handler that increments the provided counter.
*/