public class PayloadTypeSelector extends 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(Class<?>... types)
Create a selector for the provided types.
|
public PayloadTypeSelector(Class<?>... types)
types - The types.public boolean accept(Message<?> message)
accept in interface GenericSelector<Message<?>>accept in interface MessageSelector