| Modifier and Type | Class | Description |
|---|---|---|
static class |
OkHttpSender.Builder |
| Modifier and Type | Method | Description |
|---|---|---|
zipkin2.CheckResult |
check() |
Sends an empty json message to the configured endpoint.
|
void |
close() |
Waits up to a second for in-flight requests to finish before cancelling them
|
static OkHttpSender |
create(java.lang.String endpoint) |
Creates a sender that posts
Encoding.JSON messages. |
int |
messageSizeInBytes(int encodedSizeInBytes) |
|
int |
messageSizeInBytes(java.util.List<byte[]> encodedSpans) |
|
static OkHttpSender.Builder |
newBuilder() |
|
zipkin2.Call<java.lang.Void> |
sendSpans(java.util.List<byte[]> encodedSpans) |
The returned call sends spans as a POST to
endpoint(). |
OkHttpSender.Builder |
toBuilder() |
Creates a builder out of this object.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitencoding, messageMaxBytespublic static OkHttpSender create(java.lang.String endpoint)
Encoding.JSON messages.public static OkHttpSender.Builder newBuilder()
public final OkHttpSender.Builder toBuilder()
OkHttpSender.Builder.clientBuilder() was
customized, you'll need to re-apply those customizations.public int messageSizeInBytes(java.util.List<byte[]> encodedSpans)
messageSizeInBytes in class Senderpublic int messageSizeInBytes(int encodedSizeInBytes)
messageSizeInBytes in class Senderpublic zipkin2.Call<java.lang.Void> sendSpans(java.util.List<byte[]> encodedSpans)
endpoint().public zipkin2.CheckResult check()
check in class zipkin2.Componentpublic void close()
close in class zipkin2.Componentpublic final java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016–2017 OpenZipkin. All rights reserved.