public static class M3Reporter.Builder
extends java.lang.Object
M3Reporter.| Modifier and Type | Field and Description |
|---|---|
protected com.uber.m3.util.ImmutableMap<java.lang.String,java.lang.String> |
commonTags |
protected java.net.SocketAddress[] |
endpointSocketAddresses |
protected java.lang.String |
env |
protected java.util.concurrent.ExecutorService |
executor |
protected java.lang.String |
histogramBucketIdName |
protected java.lang.String |
histogramBucketName |
protected int |
histogramBucketTagPrecision |
protected boolean |
includeHost |
protected int |
maxPacketSizeBytes |
protected int |
maxProcessorWaitUntilFlushMillis |
protected java.lang.String |
service |
| Constructor and Description |
|---|
Builder(java.net.SocketAddress socketAddress)
Constructs a
M3Reporter.Builder. |
Builder(java.net.SocketAddress[] endpointSocketAddresses)
Constructs a
M3Reporter.Builder. |
| Modifier and Type | Method and Description |
|---|---|
M3Reporter |
build()
Builds and returns an
M3Reporter with the configured paramters. |
M3Reporter.Builder |
commonTags(com.uber.m3.util.ImmutableMap<java.lang.String,java.lang.String> commonTags)
Configures the common tags of this
M3Reporter.Builder. |
M3Reporter.Builder |
env(java.lang.String env)
Configures the env of this
M3Reporter.Builder. |
M3Reporter.Builder |
executor(java.util.concurrent.ExecutorService executor)
Configures the executor of this
M3Reporter.Builder. |
M3Reporter.Builder |
histogramBucketIdName(java.lang.String histogramBucketIdName)
Configures the histogram bucket ID name of this
M3Reporter.Builder. |
M3Reporter.Builder |
histogramBucketName(java.lang.String histogramBucketName)
Configures the histogram bucket name of this
M3Reporter.Builder. |
M3Reporter.Builder |
histogramBucketTagPrecision(int histogramBucketTagPrecision)
Configures the histogram bucket tag precision of this
M3Reporter.Builder. |
M3Reporter.Builder |
includeHost(boolean includeHost)
Configures whether to include the host tag of this
M3Reporter.Builder. |
M3Reporter.Builder |
maxPacketSizeBytes(int maxPacketSizeBytes)
Configures the maximum packet size in bytes of this
M3Reporter.Builder. |
M3Reporter.Builder |
maxProcessorWaitUntilFlushMillis(int maxProcessorWaitUntilFlushMillis)
Configures the maximum wait time in milliseconds size in bytes of this
M3Reporter.Builder. |
M3Reporter.Builder |
maxQueueSize(int maxQueueSize)
Deprecated.
this method has no impact anymore and will be deleted in the next release
|
M3Reporter.Builder |
service(java.lang.String service)
Configures the service of this
M3Reporter.Builder. |
protected java.net.SocketAddress[] endpointSocketAddresses
protected java.lang.String service
protected java.lang.String env
protected java.util.concurrent.ExecutorService executor
protected com.uber.m3.util.ImmutableMap<java.lang.String,java.lang.String> commonTags
protected boolean includeHost
protected int maxPacketSizeBytes
protected int maxProcessorWaitUntilFlushMillis
protected java.lang.String histogramBucketIdName
protected java.lang.String histogramBucketName
protected int histogramBucketTagPrecision
public Builder(java.net.SocketAddress[] endpointSocketAddresses)
M3Reporter.Builder. Having at least one SocketAddress is required.endpointSocketAddresses - the array of SocketAddresses for this M3Reporterpublic Builder(java.net.SocketAddress socketAddress)
M3Reporter.Builder. Having at least one SocketAddress is required.socketAddress - the SocketAddress for this M3Reporterpublic M3Reporter.Builder service(java.lang.String service)
M3Reporter.Builder.service - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder env(java.lang.String env)
M3Reporter.Builder.env - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder executor(java.util.concurrent.ExecutorService executor)
M3Reporter.Builder.executor - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder commonTags(com.uber.m3.util.ImmutableMap<java.lang.String,java.lang.String> commonTags)
M3Reporter.Builder.commonTags - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder includeHost(boolean includeHost)
M3Reporter.Builder.includeHost - the value to setM3Reporter.Builder with the new value set@Deprecated public M3Reporter.Builder maxQueueSize(int maxQueueSize)
M3Reporter.Builder.maxQueueSize - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder maxPacketSizeBytes(int maxPacketSizeBytes)
M3Reporter.Builder.maxPacketSizeBytes - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder maxProcessorWaitUntilFlushMillis(int maxProcessorWaitUntilFlushMillis)
M3Reporter.Builder.maxProcessorWaitUntilFlushMillis - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder histogramBucketIdName(java.lang.String histogramBucketIdName)
M3Reporter.Builder.histogramBucketIdName - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder histogramBucketName(java.lang.String histogramBucketName)
M3Reporter.Builder.histogramBucketName - the value to setM3Reporter.Builder with the new value setpublic M3Reporter.Builder histogramBucketTagPrecision(int histogramBucketTagPrecision)
M3Reporter.Builder.histogramBucketTagPrecision - the value to setM3Reporter.Builder with the new value setpublic M3Reporter build()
M3Reporter with the configured paramters.M3Reporter instance with the configured paramters