Class MessageBusStatusInformationAdapter
- java.lang.Object
-
- de.quantummaid.eventmaid.messageBus.internal.MessageBusStatusInformationAdapter
-
- All Implemented Interfaces:
MessageBusStatusInformation
public final class MessageBusStatusInformationAdapter extends Object implements MessageBusStatusInformation
-
-
Constructor Summary
Constructors Constructor Description MessageBusStatusInformationAdapter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MessageBusExceptionListener>getAllExceptionListener()Returns allMessageBusExceptionListenercurrently registered on theMessageBus.List<Subscriber<?>>getAllSubscribers()Returns the list of allSubscribers.Channel<Object>getChannelFor(EventType eventType)Returns theEventTypespecificChannelfor the given type ornullif the type has not yet been sent or subscribed.MessageBusStatisticsgetCurrentMessageStatistics()Collects the message statistics for this point in time.Map<EventType,List<Subscriber<?>>>getSubscribersPerType()Returns allSubscribersgrouped by their subscribed classes.static MessageBusStatusInformationAdapterstatusInformationAdapter(@NonNull MessageBusStatisticsCollector statisticsCollector, @NonNull MessageBusBrokerStrategy brokerStrategy, @NonNull ExceptionListenerHandler exceptionListenerHandler)
-
-
-
Method Detail
-
statusInformationAdapter
public static MessageBusStatusInformationAdapter statusInformationAdapter(@NonNull @NonNull MessageBusStatisticsCollector statisticsCollector, @NonNull @NonNull MessageBusBrokerStrategy brokerStrategy, @NonNull @NonNull ExceptionListenerHandler exceptionListenerHandler)
-
getCurrentMessageStatistics
public MessageBusStatistics getCurrentMessageStatistics()
Description copied from interface:MessageBusStatusInformationCollects the message statistics for this point in time.- Specified by:
getCurrentMessageStatisticsin interfaceMessageBusStatusInformation- Returns:
MessageBusStatisticswith a timestamp
-
getAllSubscribers
public List<Subscriber<?>> getAllSubscribers()
Description copied from interface:MessageBusStatusInformationReturns the list of allSubscribers.- Specified by:
getAllSubscribersin interfaceMessageBusStatusInformation- Returns:
- list of all
Subscribers
-
getChannelFor
public Channel<Object> getChannelFor(EventType eventType)
Description copied from interface:MessageBusStatusInformationReturns theEventTypespecificChannelfor the given type ornullif the type has not yet been sent or subscribed.- Specified by:
getChannelForin interfaceMessageBusStatusInformation- Parameters:
eventType- the type of interest- Returns:
- the
Channelof the class ornull
-
getSubscribersPerType
public Map<EventType,List<Subscriber<?>>> getSubscribersPerType()
Description copied from interface:MessageBusStatusInformationReturns allSubscribersgrouped by their subscribed classes.- Specified by:
getSubscribersPerTypein interfaceMessageBusStatusInformation- Returns:
- map of classes and their
Subscribers
-
getAllExceptionListener
public List<MessageBusExceptionListener> getAllExceptionListener()
Description copied from interface:MessageBusStatusInformationReturns allMessageBusExceptionListenercurrently registered on theMessageBus.- Specified by:
getAllExceptionListenerin interfaceMessageBusStatusInformation- Returns:
- the list of
MessageBusExceptionListeners
-
-