public class ClientTransactionCompletion extends Object implements TransactionCompletion
| Modifier and Type | Field and Description |
|---|---|
private boolean |
backoff |
private long |
bytesTransferred |
private int |
dataPacketsTransferred |
private long |
durationNanos |
| Constructor and Description |
|---|
ClientTransactionCompletion(boolean backoff,
int dataPacketsTransferred,
long bytesTransferred,
long durationNanos) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesTransferred() |
int |
getDataPacketsTransferred() |
long |
getDuration(TimeUnit timeUnit) |
boolean |
isBackoff()
When a sending to a NiFi instance, the server may accept the content sent
to it but indicate that its queues are full and that the client should
backoff sending data for a bit.
|
private final boolean backoff
private final int dataPacketsTransferred
private final long bytesTransferred
private final long durationNanos
public ClientTransactionCompletion(boolean backoff,
int dataPacketsTransferred,
long bytesTransferred,
long durationNanos)
public boolean isBackoff()
TransactionCompletionisBackoff in interface TransactionCompletiontrue if the server did in fact request that,
false otherwisepublic int getDataPacketsTransferred()
getDataPacketsTransferred in interface TransactionCompletionpublic long getBytesTransferred()
getBytesTransferred in interface TransactionCompletionInputStream of the
DataPacketpublic long getDuration(TimeUnit timeUnit)
getDuration in interface TransactionCompletiontimeUnit - unit of time for which to report the durationCopyright © 2023 Apache NiFi Project. All rights reserved.