class NifiSinkTransaction
extends org.apache.flume.channel.BasicTransactionSemantics
| Modifier and Type | Field and Description |
|---|---|
private Relationship |
failure |
private List<FlowFile> |
flowFiles |
private ProcessSession |
session |
private Relationship |
success |
| Constructor and Description |
|---|
NifiSinkTransaction(ProcessSession session,
Relationship success,
Relationship failure) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doCommit() |
protected void |
doPut(org.apache.flume.Event event) |
protected void |
doRollback() |
protected org.apache.flume.Event |
doTake() |
private final ProcessSession session
private final Relationship success
private final Relationship failure
public NifiSinkTransaction(ProcessSession session, Relationship success, Relationship failure)
protected void doPut(org.apache.flume.Event event)
throws InterruptedException
doPut in class org.apache.flume.channel.BasicTransactionSemanticsInterruptedExceptionprotected org.apache.flume.Event doTake()
throws InterruptedException
doTake in class org.apache.flume.channel.BasicTransactionSemanticsInterruptedExceptionprotected void doCommit()
throws InterruptedException
doCommit in class org.apache.flume.channel.BasicTransactionSemanticsInterruptedExceptionprotected void doRollback()
throws InterruptedException
doRollback in class org.apache.flume.channel.BasicTransactionSemanticsInterruptedExceptionCopyright © 2017 Apache NiFi Project. All rights reserved.