com.ibm.ia.testdriver.data

Interface EventSourceIterator<T>

  • Type Parameters:
    T - The type of meta data object related to each event returned by this event source iterator. An object of this type is returned by the getRelatedEventMetaData(String) method.
    All Superinterfaces:
    java.util.Iterator<com.ibm.ia.model.Event>


    public interface EventSourceIterator<T>
    extends java.util.Iterator<com.ibm.ia.model.Event>
    An iterator for an EventSource. This represents a ordered traversal of the events within an EventSource. To re-submit the collection of events in the same order, create a new iterator instance. Repeatable ordering of events returned by instances of the iterator may be affected by restrictions on individual implementations and should be defined by the iterator implementor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      T getRelatedEventMetaData(java.lang.String eventID)
      Retrieves the meta data related to an event supplied by the event source.
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, hasNext, next, remove
    • Method Detail

      • getRelatedEventMetaData

        T getRelatedEventMetaData(java.lang.String eventID)
        Retrieves the meta data related to an event supplied by the event source. This allows results returned from TestDriver to be linked to any pertinent meta data associated with the creation of the event that the result is related to.
        Parameters:
        eventID - The event ID.
        Returns:
        Data related to the supplied event ID.

© Copyright IBM 2017