Interface MessageListener<T>
-
- Type Parameters:
T- the type received by the listener.
- All Known Subinterfaces:
EventHubsBatchMessageListener,EventHubsRecordMessageListener,ServiceBusRecordMessageListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface MessageListener<T>
Top level interface for Azure message listeners.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonMessage(T message)Invoked with message from any Azure messaging service.
-
-
-
Method Detail
-
onMessage
void onMessage(T message)
Invoked with message from any Azure messaging service.- Parameters:
message- the message to be processed.
-
-