public class ClientTransactionCompletion extends java.lang.Object implements TransactionCompletion
| Constructor and Description |
|---|
ClientTransactionCompletion(boolean backoff,
int dataPacketsTransferred,
long bytesTransferred,
long durationNanos) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesTransferred() |
int |
getDataPacketsTransferred() |
long |
getDuration(java.util.concurrent.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.
|
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(java.util.concurrent.TimeUnit timeUnit)
getDuration in interface TransactionCompletiontimeUnit - unit of time for which to report the duration