public interface ExtendedMessageConnector extends MessageConnector<ExtendedMessage>
This interface is an extension point to implement message retrieval from different sources to the iAGENT system. Implementations of the type
ExtendedMessageConnectorhave to provide the externally retrieved messages as objects of the type
Messageand stores additional information about the retrieved message.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
iterator()As long as the
ExtendedMessageConnectoris active this method will be called periodically to retrieve messages from an external source.
MessageIterator<ExtendedMessage> iterator()As long as the
ExtendedMessageConnectoris active this method will be called periodically to retrieve messages from an external source. The
MessageIteratormay not be iterated until it's end. The
MessageIteratorhas to implement the
MessageIterator.remove()method, that will be called to remove a message permanently from the source after being processed successfully. A message that has been removed, must not be retrieved again by any
MessageIteratorin the future. Finally the
MessageIterator.close()method will be called to indicate the end of the iteration and therefore the also the end of the iterator's life cycle. All further messages, that haven't been processed yet, will be processed during the next fetch period.