resubmitArchivedEvents()

Copies the specified archived event from the application's archive store to the application's event store and changes the event status to READY_FOR_POLL.

Syntax

public abstract int resubmitArchivedEvents(String eventID);
 

Parameters

eventID
Is the event ID for the event to resubmit.

Return values

An integer that indicates the number of events archived. If nothing is resubmitted, return a zero (0 ).

Exceptions

InvalidStatusChangeException
Thrown when the status is being changed to an invalid status value for the application.

StatusChangeFailedException
Thrown when the status change to READY_FOR_POLL fails.

Notes

The resubmitArchivedEvents() method resubmits unprocessed events in the archive store to the event store, where they can be processed. An event is moved to the archive store when it has no subscriptions or after it has been processed. Archiving processed or unsubscribed events ensures that events are not lost. Setting the event status to READY_FOR_POLL ensures that the events will be picked up on subsequent polls of the event store.

Important:
The resubmitArchivedEvents() method is an abstract method. Therefore, the event-store class must implement this method to provide the resubmit archived events for subsequent polls of the event store.

Copyright IBM Corp. 1997, 2003