Package net.handle.hdllib
Interface TransactionCallback
-
public interface TransactionCallbackInterface used to define objects that want to receive the streamed results from RetrieveTxnResponse messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinishProcessing()voidfinishProcessing(long sourceDate)Finish processing this request.voidprocessTransaction(java.lang.String queueName, Transaction txn)voidprocessTransaction(Transaction txn)Process the given transaction which was received via the stream in the RetrieveTxnResponse message.voidsetQueueLastTimestamp(java.lang.String queueName, long sourceDate)
-
-
-
Method Detail
-
processTransaction
void processTransaction(Transaction txn) throws HandleException
Process the given transaction which was received via the stream in the RetrieveTxnResponse message.- Throws:
HandleException
-
finishProcessing
void finishProcessing(long sourceDate)
Finish processing this request. The given date (or more specifically, the minimum date returned from all replicated servers) should be used the next time that a RetrieveTxnRequest is sent.
-
finishProcessing
void finishProcessing()
-
setQueueLastTimestamp
void setQueueLastTimestamp(java.lang.String queueName, long sourceDate)
-
processTransaction
void processTransaction(java.lang.String queueName, Transaction txn) throws HandleException- Throws:
HandleException
-
-