public class Configuration extends java.lang.Object implements ISenderConfig, ISessionConfig, IQueueConfig
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_SESSION_INTERVAL |
| Constructor and Description |
|---|
Configuration()
Constructs a new INSTANCE of a config
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEndpointUrl()
Get the url to which payloads will be sent.
|
int |
getMaxBatchCount()
Get the maximum size of a batch in bytes.
|
int |
getMaxBatchIntervalMs()
Get the maximum interval allowed between calls to batchInvoke.
|
int |
getSenderConnectTimeout()
Get the timeout for connecting to the data collector endpoint.
|
int |
getSenderReadTimeout()
Get the timeout for reading the response from the data collector endpoint.
|
long |
getSessionIntervalMs()
Get the interval at which sessions are renewed.
|
void |
setEndpointUrl(java.lang.String endpointUrl)
Set the url to which payloads will be sent.
|
void |
setMaxBatchCount(int maxBatchCount)
Set the maximum size of a batch in bytes.
|
void |
setMaxBatchIntervalMs(int maxBatchIntervalMs)
Set the maximum interval allowed between calls to batchInvoke.
|
void |
setSenderConnectTimeout(int senderConnectTimeout)
Set the timeout for connecting to the data collector endpoint.
|
void |
setSenderReadTimeout(int senderReadTimeout)
Set the timeout for reading the response from the data collector endpoint.
|
void |
setSessionIntervalMs(long sessionIntervalMs)
Set the interval at which sessions are renewed.
|
protected static final int DEFAULT_SESSION_INTERVAL
public int getMaxBatchCount()
getMaxBatchCount in interface IQueueConfigpublic void setMaxBatchCount(int maxBatchCount)
setMaxBatchCount in interface IQueueConfigmaxBatchCount - the batchsize of data that will be queued until we send/persist itpublic int getMaxBatchIntervalMs()
getMaxBatchIntervalMs in interface IQueueConfigpublic void setMaxBatchIntervalMs(int maxBatchIntervalMs)
setMaxBatchIntervalMs in interface IQueueConfigmaxBatchIntervalMs - the amount of MS until we want to send out a batch of datapublic java.lang.String getEndpointUrl()
getEndpointUrl in interface ISenderConfigpublic void setEndpointUrl(java.lang.String endpointUrl)
setEndpointUrl in interface ISenderConfigendpointUrl - url of the server that receives our datapublic int getSenderReadTimeout()
getSenderReadTimeout in interface ISenderConfigpublic void setSenderReadTimeout(int senderReadTimeout)
setSenderReadTimeout in interface ISenderConfigsenderReadTimeout - the timeout for reading the response from the endpointpublic int getSenderConnectTimeout()
getSenderConnectTimeout in interface ISenderConfigpublic void setSenderConnectTimeout(int senderConnectTimeout)
setSenderConnectTimeout in interface ISenderConfigsenderConnectTimeout - the timeout for connecting to the data collector endpoint in Mspublic long getSessionIntervalMs()
getSessionIntervalMs in interface ISessionConfigpublic void setSessionIntervalMs(long sessionIntervalMs)
setSessionIntervalMs in interface ISessionConfigsessionIntervalMs - the interval at which sessions are renewed in Ms