Package de.otto.synapse.info
Class MessageReceiverEndpointInfoProvider
- java.lang.Object
-
- de.otto.synapse.info.MessageReceiverEndpointInfoProvider
-
public class MessageReceiverEndpointInfoProvider extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MessageReceiverEndpointInfoProvider(java.util.Optional<java.util.List<EventSource>> eventSources)MessageReceiverEndpointInfoProvider(java.util.Optional<java.util.List<EventSource>> eventSources, java.time.Clock clock)For testing purposes only.
-
Method Summary
Modifier and Type Method Description MessageReceiverEndpointInfosgetInfos()voidon(MessageReceiverNotification notification)
-
-
-
Constructor Detail
-
MessageReceiverEndpointInfoProvider
@Autowired public MessageReceiverEndpointInfoProvider(java.util.Optional<java.util.List<EventSource>> eventSources)
-
MessageReceiverEndpointInfoProvider
public MessageReceiverEndpointInfoProvider(java.util.Optional<java.util.List<EventSource>> eventSources, java.time.Clock clock)
For testing purposes only.- Parameters:
eventSources- the event sourcesclock- clock used to time events end testing the timing behaviour of the provider
-
-
Method Detail
-
on
@EventListener public void on(MessageReceiverNotification notification)
-
getInfos
public MessageReceiverEndpointInfos getInfos()
-
-