com.ibm.ia.testdriver.data
Interface EventSource<T>
-
- Type Parameters:
T
- The type of meta data object related to each event returned by this event sources iterator. SeeEventSourceIterator.getRelatedEventMetaData(String)
.
- All Superinterfaces:
- java.lang.Iterable<Event>
public interface EventSource<T> extends java.lang.Iterable<Event>
An EventSource represents a source of events that can be submitted to a solution. Use theiterator()
method to obtain aIterator
that can be used with theTestDriver.submitEvents(Iterator)
method. To re-submit the collection of events in the same order, create a new iterator instance.
-
-
Field Summary
Fields Modifier and Type Field and Description static int
SKIP_NO_FAILURES
Do not skip any failures.static int
SKIP_UNRECOGNISED_EVENTS
Skip any events that are unrecognised by the solution.
-
Method Summary
Methods Modifier and Type Method and Description EventSourceIterator<T>
iterator()
-
-
-
Field Detail
-
SKIP_NO_FAILURES
static final int SKIP_NO_FAILURES
Do not skip any failures. An exception will be thrown when the first problem is encountered.- See Also:
- Constant Field Values
-
SKIP_UNRECOGNISED_EVENTS
static final int SKIP_UNRECOGNISED_EVENTS
Skip any events that are unrecognised by the solution. Unrecognised events will not trigger an exception.- See Also:
- Constant Field Values
-
-
Method Detail
-
iterator
EventSourceIterator<T> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Event>
-
-