|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.flume.channel.MemoryChannel.MemTransaction
public class MemoryChannel.MemTransaction
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.flume.Transaction |
|---|
Transaction.TransactionState |
| Constructor Summary | |
|---|---|
MemoryChannel.MemTransaction()
|
|
| Method Summary | |
|---|---|
void |
begin()
Starts a transaction boundary for the current channel operation. |
void |
close()
Ends a transaction boundary for the current channel operation. |
void |
commit()
Indicates that the transaction can be successfully committed. |
Transaction.TransactionState |
getState()
|
protected int |
lastTakeStamp()
|
protected void |
logPut(org.apache.flume.channel.MemoryChannel.StampedEvent e,
int stamp)
|
protected void |
logTake(org.apache.flume.channel.MemoryChannel.StampedEvent e,
int stamp)
|
protected org.apache.flume.channel.MemoryChannel.StampedEvent |
removePut()
|
protected org.apache.flume.channel.MemoryChannel.StampedEvent |
removeTake()
|
void |
rollback()
Indicates that the transaction can must be aborted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryChannel.MemTransaction()
| Method Detail |
|---|
public void begin()
TransactionStarts a transaction boundary for the current channel operation. If a transaction is already in progress, this method will join that transaction using reference counting.
Note: For every invocation of this method there must be a corresponding invocation of Transaction.close() method. Failure to ensure this can lead to dangling transactions and unpredictable results.
begin in interface Transactionpublic void commit()
Transaction
commit in interface Transactionpublic void rollback()
Transaction
rollback in interface Transactionpublic void close()
TransactionEnds a transaction boundary for the current channel operation. If a transaction is already in progress, this method will join that transaction using reference counting. The transaction is completed only if there are no more references left for this transaction.
Note: For every invocation of this method there must be a corresponding invocation of Transaction.begin() method. Failure to ensure this can lead to dangling transactions and unpredictable results.
close in interface Transactionpublic Transaction.TransactionState getState()
protected int lastTakeStamp()
protected void logPut(org.apache.flume.channel.MemoryChannel.StampedEvent e,
int stamp)
protected void logTake(org.apache.flume.channel.MemoryChannel.StampedEvent e,
int stamp)
protected org.apache.flume.channel.MemoryChannel.StampedEvent removePut()
protected org.apache.flume.channel.MemoryChannel.StampedEvent removeTake()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||