public final class LevelDBQueueConsumer extends AbstractQueueConsumer
commitCount, stateColumnName, transaction| Modifier and Type | Method and Description |
|---|---|
protected boolean |
claimEntry(byte[] rowKey,
byte[] stateContent) |
void |
close() |
protected QueueScanner |
getScanner(byte[] startRow,
byte[] stopRow,
int numRows) |
void |
postTxCommit() |
protected void |
undoState(Set<byte[]> rowKeys,
byte[] stateColumnName) |
protected void |
updateState(Set<byte[]> rowKeys,
byte[] stateColumnName,
byte[] stateContent) |
commitTx, dequeue, dequeue, getConfig, getQueueName, getTransactionAwareName, getTxChanges, rollbackTx, startTx, updateStartRow, updateTxpublic void postTxCommit()
public void close()
throws IOException
IOExceptionprotected boolean claimEntry(byte[] rowKey,
byte[] stateContent)
throws IOException
claimEntry in class AbstractQueueConsumerIOExceptionprotected void updateState(Set<byte[]> rowKeys, byte[] stateColumnName, byte[] stateContent) throws IOException
updateState in class AbstractQueueConsumerIOExceptionprotected void undoState(Set<byte[]> rowKeys, byte[] stateColumnName) throws IOException, InterruptedException
undoState in class AbstractQueueConsumerIOExceptionInterruptedExceptionprotected QueueScanner getScanner(byte[] startRow, byte[] stopRow, int numRows) throws IOException
getScanner in class AbstractQueueConsumerIOExceptionCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.