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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user