public class ZipkinSpanCollectorParams extends Object
ZipkinSpanCollector.
If not specified we will use the default values. We support following parameters:
ZipkinSpanCollector should fail on creation when connection with collector can't
be established or just log error message.| Modifier and Type | Field and Description |
|---|---|
int |
DEFAULT_BATCH_SIZE |
int |
DEFAULT_NR_OF_THREADS |
int |
DEFAULT_QUEUE_SIZE |
int |
DEFAULT_SOCKET_TIMEOUT |
| Constructor and Description |
|---|
ZipkinSpanCollectorParams()
Create a new instance with default values.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
failOnSetup()
Indicates if
ZipkinSpanCollector should fail on creation when connection with collector can't be established. |
int |
getBatchSize()
Gets the maximum batch size.
|
int |
getNrOfThreads()
Gets the number of threads.
|
int |
getQueueSize()
Gets queue size.
|
int |
getSocketTimeout()
Gets the socket time out.
|
void |
setBatchSize(int batchSize)
Sets the batch size.
|
void |
setFailOnSetup(boolean failOnSetup)
Sets fail on setup value.
|
void |
setNrOfThreads(int nrOfThreads)
Sets the number of parallel threads for submitting spans to collector.
|
void |
setQueueSize(int queueSize)
Sets the size of the queue that is used as buffer between producers of spans and the thread(s) that submit the spans
to collector.
|
void |
setSocketTimeout(int socketTimeout)
Sets the socket time out in milliseconds.
|
public int DEFAULT_QUEUE_SIZE
public int DEFAULT_BATCH_SIZE
public int DEFAULT_NR_OF_THREADS
public int DEFAULT_SOCKET_TIMEOUT
public ZipkinSpanCollectorParams()
public int getQueueSize()
public void setQueueSize(int queueSize)
queueSize - Queue size.public int getBatchSize()
public void setBatchSize(int batchSize)
batchSize - Maximum batch size.public int getNrOfThreads()
public void setNrOfThreads(int nrOfThreads)
nrOfThreads - Number of parallel threads for submitting spans to collector.public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
socketTimeout - Socket time out in milliseconds. Should be >= 100;public void setFailOnSetup(boolean failOnSetup)
failOnSetup - true in case ZipkinSpanCollector will throw exception when connection can't be
established during setup. Or false in case we should log message but not throw exception.public boolean failOnSetup()
ZipkinSpanCollector should fail on creation when connection with collector can't be established.true in case ZipkinSpanCollector will throw exception when connection can't be
established during setup. Or false in case we should log message but not throw exception. Default
value = true.Copyright © 2015. All Rights Reserved.