Added null check for EndpointExecutor 'getActiveCount()' and adjusted MessageSelector definition for generic Message.
This commit is contained in:
@@ -127,6 +127,9 @@ public class EndpointExecutor implements Lifecycle {
|
||||
}
|
||||
|
||||
public int getActiveCount() {
|
||||
if (this.threadPoolExecutor == null) {
|
||||
return 0;
|
||||
}
|
||||
return this.threadPoolExecutor.getActiveCount();
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,6 @@ package org.springframework.integration.message;
|
||||
*/
|
||||
public interface MessageSelector {
|
||||
|
||||
boolean accept(Message message);
|
||||
boolean accept(Message<?> message);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user