MessageT
- @Beta
public interface MessageListener<MessageT extends Message>
Represents a message listener which refers to a specific message type MessageT
.
Allows to specify logic to treat a received instance of MessageT
in the method onMessage
.
Modifier and Type | Method and Description |
---|---|
Class<MessageT> |
getMessageType()
Returns the concrete type of message that this listener can process.
|
void |
onMessage(MessageT message)
Called upon reception of one message of type
MessageT . |
Copyright © 2020 SAP SE. All rights reserved.