public abstract static class AbstractEmitter.Builder<T extends AbstractEmitter.Builder<T>>
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
T |
httpClientAdapter(HttpClientAdapter httpClientAdapter)
Adds the HttpClientAdapter to the AbstractEmitter
|
T |
requestCallback(RequestCallback requestCallback)
An optional Request Callback for adding the ability to handle failure cases
for sending.
|
protected abstract T |
self() |
T |
threadCount(int threadCount)
Sets the Thread Count for the ExecutorService
|
T |
url(java.lang.String collectorUrl)
Sets the emitter url for when a httpClientAdapter is not specified
Will be used to create the default OkHttpClientAdapter.
|
protected abstract T self()
public T httpClientAdapter(HttpClientAdapter httpClientAdapter)
httpClientAdapter - the adapter to usepublic T requestCallback(RequestCallback requestCallback)
requestCallback - the emitter request callbackpublic T threadCount(int threadCount)
threadCount - the size of the thread poolpublic T url(java.lang.String collectorUrl)
collectorUrl - the url for the default httpClientAdapter