public static class WavefrontClient.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder(String server,
String token)
Create a new WavefrontClient.Builder
|
| Modifier and Type | Method and Description |
|---|---|
WavefrontClient.Builder |
batchSize(int batchSize)
Set batch size to be reported during every flush.
|
WavefrontClient |
build()
Creates a new client that flushes directly to a Proxy or Wavefront service.
|
WavefrontClient.Builder |
flushIntervalSeconds(int flushIntervalSeconds)
Set interval at which you want to flush points to Wavefront cluster.
|
WavefrontClient.Builder |
maxQueueSize(int maxQueueSize)
Set max queue size of in-memory buffer.
|
WavefrontClient.Builder |
messageSizeBytes(int bytes)
Set max message size, such that each batch is reported as one or more messages where no
message exceeds the specified size in bytes.
|
public WavefrontClient.Builder maxQueueSize(int maxQueueSize)
maxQueueSize - Max queue size of in-memory bufferthispublic WavefrontClient.Builder batchSize(int batchSize)
batchSize - Batch size to be reported during every flush.thispublic WavefrontClient.Builder flushIntervalSeconds(int flushIntervalSeconds)
flushIntervalSeconds - Interval at which you want to flush points to Wavefront clusterthispublic WavefrontClient.Builder messageSizeBytes(int bytes)
Integer.MAX_VALUE.bytes - Maximum number of bytes of data that each reported message contains.thispublic WavefrontClient build()
WavefrontClientCopyright © 2020. All rights reserved.