T - match classpublic class ImplementsEventMatcher<T> extends java.lang.Object implements IEventMatcher<T>
| Constructor and Description |
|---|
ImplementsEventMatcher(java.lang.Class<T> type,
IEventMatcher<? extends java.lang.Object> successor)
Create an event matcher to match events for a specific interface.
|
| Modifier and Type | Method and Description |
|---|---|
IEventMatcher<? extends java.lang.Object> |
getNextMatcher()
Return the next matcher.
|
teetime.framework.OutputPort<T> |
getOutputPort()
Provide the corresponding output port.
|
<R> boolean |
matchEvent(R event)
Check whether the event should be send to a specific output port.
|
void |
setNextMatcher(IEventMatcher<? extends java.lang.Object> leaveEventMatcher)
Set a new following matcher.
|
void |
setOutputPort(teetime.framework.OutputPort<T> outputPort)
Register an event matcher.
|
public ImplementsEventMatcher(java.lang.Class<T> type, IEventMatcher<? extends java.lang.Object> successor)
type - the class type to be matchedsuccessor - next matcher to use in case this one does not matchpublic <R> boolean matchEvent(R event)
IEventMatchermatchEvent in interface IEventMatcher<T>R - a sub type of event - event to be evaluatedpublic teetime.framework.OutputPort<T> getOutputPort()
IEventMatchergetOutputPort in interface IEventMatcher<T>public void setOutputPort(teetime.framework.OutputPort<T> outputPort)
IEventMatchersetOutputPort in interface IEventMatcher<T>outputPort - an output port for the event matcherpublic IEventMatcher<? extends java.lang.Object> getNextMatcher()
IEventMatchergetNextMatcher in interface IEventMatcher<T>public void setNextMatcher(IEventMatcher<? extends java.lang.Object> leaveEventMatcher)
IEventMatchersetNextMatcher in interface IEventMatcher<T>leaveEventMatcher - one matcher or a chain of matchersCopyright 2021 Kieker Project, http://kieker-monitoring.net