Interface MessageBusStatusInformation
-
- All Known Implementing Classes:
MessageBusStatusInformationAdapter
public interface MessageBusStatusInformationGives access to theMessageBus'statistics and all of its currently registeredSubscribers.- See Also:
- EventMaid Documentation, EventMaid Documentation
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getCurrentMessageStatistics
MessageBusStatistics getCurrentMessageStatistics()
Collects the message statistics for this point in time.- Returns:
MessageBusStatisticswith a timestamp
-
getAllSubscribers
List<Subscriber<?>> getAllSubscribers()
Returns the list of allSubscribers.- Returns:
- list of all
Subscribers
-
getSubscribersPerType
Map<EventType,List<Subscriber<?>>> getSubscribersPerType()
Returns allSubscribersgrouped by their subscribed classes.- Returns:
- map of classes and their
Subscribers
-
getChannelFor
Channel<Object> getChannelFor(EventType eventType)
Returns theEventTypespecificChannelfor the given type ornullif the type has not yet been sent or subscribed.- Parameters:
eventType- the type of interest- Returns:
- the
Channelof the class ornull
-
getAllExceptionListener
List<MessageBusExceptionListener> getAllExceptionListener()
Returns allMessageBusExceptionListenercurrently registered on theMessageBus.- Returns:
- the list of
MessageBusExceptionListeners
-
-