public class SocketClientTransaction extends AbstractTransaction
Transaction.TransactionState| Modifier and Type | Field and Description |
|---|---|
private DataInputStream |
dis |
private DataOutputStream |
dos |
codec, dataAvailable, destinationId, direction, eventReporter, logger, peer, protocolVersion, state| Constructor and Description |
|---|
SocketClientTransaction(int protocolVersion,
String destinationId,
Peer peer,
FlowFileCodec codec,
TransferDirection direction,
boolean useCompression,
int penaltyMillis,
EventReporter eventReporter) |
| Modifier and Type | Method and Description |
|---|---|
private void |
initialize() |
protected Response |
readTransactionResponse() |
protected void |
writeTransactionResponse(ResponseCode response,
String explanation,
boolean flush) |
cancel, close, complete, confirm, error, getCommunicant, getState, receive, send, send, toString, writeTransactionResponse, writeTransactionResponseprivate final DataInputStream dis
private final DataOutputStream dos
SocketClientTransaction(int protocolVersion,
String destinationId,
Peer peer,
FlowFileCodec codec,
TransferDirection direction,
boolean useCompression,
int penaltyMillis,
EventReporter eventReporter)
throws IOException
IOExceptionprivate void initialize()
throws IOException
IOExceptionprotected Response readTransactionResponse() throws IOException
readTransactionResponse in class AbstractTransactionIOExceptionprotected void writeTransactionResponse(ResponseCode response, String explanation, boolean flush) throws IOException
writeTransactionResponse in class AbstractTransactionIOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.