Package org.axonframework.test.util
Class MessageMonitorReport
java.lang.Object
java.util.AbstractCollection<MessageMonitorReport.Report>
java.util.AbstractList<MessageMonitorReport.Report>
org.axonframework.test.util.MessageMonitorReport
- All Implemented Interfaces:
Iterable<MessageMonitorReport.Report>,Collection<MessageMonitorReport.Report>,List<MessageMonitorReport.Report>,SequencedCollection<MessageMonitorReport.Report>
MessageMonitorReport is responsible for maintaining a list of reports detailing the processing status of messages.
This class encapsulates multiple reports using a thread-safe list implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceRepresents a report that provides details about the processing of a message. -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int index, MessageMonitorReport.Report report) Creates a new instance ofMessageMonitorReport.Report.Failurewith the specified message and cause.Retrieves a list ofMessageMonitorReport.Report.Failureelements filtered from the collection of reports.get(int index) Creates a new instance ofMessageMonitorReport.Report.Ignoredwith the specified message.Retrieves a list ofMessageMonitorReport.Report.Ignoredelements filtered from the collection of reports.@NotNull Iterator<MessageMonitorReport.Report> iterator()intsize()Creates a new instance ofMessageMonitorReport.Report.Successwith the specified message.Retrieves a list ofMessageMonitorReport.Report.Successelements filtered from the collection of reports.Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, addFirst, addLast, contains, containsAll, getFirst, getLast, isEmpty, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, sort, spliterator, toArray, toArray
-
Constructor Details
-
MessageMonitorReport
public MessageMonitorReport()
-
-
Method Details
-
success
Creates a new instance ofMessageMonitorReport.Report.Successwith the specified message.- Parameters:
message- The message associated with the success report; must not be null.- Returns:
- A
MessageMonitorReport.Report.Successinstance with the provided message.
-
ignored
Creates a new instance ofMessageMonitorReport.Report.Ignoredwith the specified message.- Parameters:
message- The message associated with the ignored report; must not be null.- Returns:
- An
MessageMonitorReport.Report.Ignoredinstance with the specified message.
-
failure
Creates a new instance ofMessageMonitorReport.Report.Failurewith the specified message and cause.- Parameters:
message- The message associated with the failure report; must not be null.cause- The exception that caused the failure; must not be null.- Returns:
- A
MessageMonitorReport.Report.Failureinstance with the specified message and cause.
-
add
- Specified by:
addin interfaceList<MessageMonitorReport.Report>- Overrides:
addin classAbstractList<MessageMonitorReport.Report>
-
get
- Specified by:
getin interfaceList<MessageMonitorReport.Report>- Specified by:
getin classAbstractList<MessageMonitorReport.Report>
-
successReports
Retrieves a list ofMessageMonitorReport.Report.Successelements filtered from the collection of reports.- Returns:
- a list of
MessageMonitorReport.Report.Successinstances representing the successful reports
-
failureReports
Retrieves a list ofMessageMonitorReport.Report.Failureelements filtered from the collection of reports. This includes only the reports that are instances ofMessageMonitorReport.Report.Failure.- Returns:
- a list of
MessageMonitorReport.Report.Failureinstances representing the failure reports
-
ignoredReports
Retrieves a list ofMessageMonitorReport.Report.Ignoredelements filtered from the collection of reports. This includes only the reports that are instances ofMessageMonitorReport.Report.Ignored.- Returns:
- a list of
MessageMonitorReport.Report.Ignoredinstances representing the ignored reports
-
iterator
- Specified by:
iteratorin interfaceCollection<MessageMonitorReport.Report>- Specified by:
iteratorin interfaceIterable<MessageMonitorReport.Report>- Specified by:
iteratorin interfaceList<MessageMonitorReport.Report>- Overrides:
iteratorin classAbstractList<MessageMonitorReport.Report>
-
size
public int size()- Specified by:
sizein interfaceCollection<MessageMonitorReport.Report>- Specified by:
sizein interfaceList<MessageMonitorReport.Report>- Specified by:
sizein classAbstractCollection<MessageMonitorReport.Report>
-