Each receiver must implement this interface. It has the following methods:
init
Initializes the receiver, based on the contents of the ReceiverConfig object
public void init (Context context, ReceiverConfig config) throws BCGReceiverException
refreshConfig
Called by the Receiver Framework if it detects changes in the configuration of this receiver
public void refreshConfig(ReceiverConfig config) throws BCGReceiverException
startReceiving
Called by the Receiver Framework in its thread. After this method is called, the receiver can receive documents on its active targets. If the receiver is of the callback type, it processes callbacks in its own thread only after this point. The receiver receives documents in its own threads. This method returns quickly.
public void startReceiving() throws BCGReceiverException
None
processResponse
In the case of nonblocking synchronous requests, called by the Receiver Framework when the response document has returned from Document Manager. The call comes on a Receiver Framework (or internal class) thread. The receiver returns this call quickly.
public void processResponse(ResponseCorrelation respCorr, ReceiverDocumentInterface response) throws BCGReceiverException
stopReceiving
This method is called by the Receiver Framework in its thread. This method returns quickly. After this method is called, the receiver stops receiving the documents, and cleanup is performed. After this method is called, all references to the receiver are removed. This method is called when the Receiver Framework receivers a request to terminate.
public void stopReceiving() throws BCGReceiverException
None