Class BackendStats.Builder
java.lang.Object
express.mvp.myra.transport.BackendStats.Builder
- Enclosing class:
BackendStats
Builder for constructing
BackendStats instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavgBatchSize(double avg) Sets the average batch size.batchSubmissions(long count) Sets the batch submission count.build()Builds the statistics snapshot.failedReceives(long count) Sets the failed receive count.failedSends(long count) Sets the failed send count.totalBytesReceived(long bytes) Sets the total bytes received.totalBytesSent(long bytes) Sets the total bytes sent.totalReceives(long count) Sets the total receive count.totalSends(long count) Sets the total send count.totalSyscalls(long count) Sets the total syscall count.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
totalSends
Sets the total send count.- Parameters:
count- send operations completed- Returns:
- this builder for chaining
-
totalReceives
Sets the total receive count.- Parameters:
count- receive operations completed- Returns:
- this builder for chaining
-
totalBytesSent
Sets the total bytes sent.- Parameters:
bytes- cumulative bytes sent- Returns:
- this builder for chaining
-
totalBytesReceived
Sets the total bytes received.- Parameters:
bytes- cumulative bytes received- Returns:
- this builder for chaining
-
failedSends
Sets the failed send count.- Parameters:
count- failed send operations- Returns:
- this builder for chaining
-
failedReceives
Sets the failed receive count.- Parameters:
count- failed receive operations- Returns:
- this builder for chaining
-
batchSubmissions
Sets the batch submission count.- Parameters:
count- number of batch submissions- Returns:
- this builder for chaining
-
avgBatchSize
Sets the average batch size.- Parameters:
avg- average operations per batch- Returns:
- this builder for chaining
-
totalSyscalls
Sets the total syscall count.- Parameters:
count- number of syscalls made- Returns:
- this builder for chaining
-
build
-