Added null check for EndpointExecutor 'getActiveCount()' and adjusted MessageSelector definition for generic Message.

This commit is contained in:
Mark Fisher
2007-12-26 21:29:39 +00:00
parent b73a946815
commit 4a1d5fc4d7
3 changed files with 15 additions and 12 deletions

View File

@@ -127,6 +127,9 @@ public class EndpointExecutor implements Lifecycle {
}
public int getActiveCount() {
if (this.threadPoolExecutor == null) {
return 0;
}
return this.threadPoolExecutor.getActiveCount();
}

View File

@@ -23,6 +23,6 @@ package org.springframework.integration.message;
*/
public interface MessageSelector {
boolean accept(Message message);
boolean accept(Message<?> message);
}