Package net.handle.hdllib
Interface TransactionQueueInterface
public interface TransactionQueueInterface
Interface for the transaction queue that is used as a callback from
messages like DumpHandlesRequest.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addTransaction
(long txnId, byte[] handle, HandleValue[] values, byte action, long date) Log the specified transaction to the current queue or throw an exception if there is an error or if this is a read-only queue.void
void
deleteUntilDate
(long date) long
long
getScanner
(long lastTxnId) void
void
shutdown()
Close any open files or resources in use by the queue.
-
Method Details
-
getLastTxnId
long getLastTxnId() -
addQueueListener
-
removeQueueListener
-
addTransaction
void addTransaction(long txnId, byte[] handle, HandleValue[] values, byte action, long date) throws Exception Log the specified transaction to the current queue or throw an exception if there is an error or if this is a read-only queue.- Throws:
Exception
-
addTransaction
- Throws:
Exception
-
getScanner
- Throws:
Exception
-
getFirstDate
long getFirstDate() -
shutdown
void shutdown()Close any open files or resources in use by the queue. -
deleteUntilDate
void deleteUntilDate(long date)
-