public class PayloadTypeSelector extends java.lang.Object implements MessageSelector
MessageSelector
implementation that checks the type of the
Message
payload. The payload type must be assignable to at least one
of the selector's accepted types.Constructor and Description |
---|
PayloadTypeSelector(java.lang.Class<?>... types)
Create a selector for the provided types.
|
public PayloadTypeSelector(java.lang.Class<?>... types)
public boolean accept(Message<?> message)
accept
in interface MessageSelector