public abstract class OkHttpSender extends Sender
This sender is thread-safe.
| Modifier and Type | Class and Description |
|---|---|
static class |
OkHttpSender.Builder |
| Modifier and Type | Method and 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(String endpoint)
Creates a sender that posts
Encoding.JSON messages. |
int |
messageSizeInBytes(List<byte[]> encodedSpans) |
static OkHttpSender.Builder |
newBuilder() |
zipkin2.Call<Void> |
sendSpans(List<byte[]> encodedSpans)
The returned call sends spans as a POST to
endpoint(). |
OkHttpSender.Builder |
toBuilder()
Creates a builder out of this object.
|
String |
toString() |
encoding, messageMaxBytespublic static OkHttpSender create(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(List<byte[]> encodedSpans)
messageSizeInBytes in class Senderpublic zipkin2.Call<Void> sendSpans(List<byte[]> encodedSpans)
endpoint().public zipkin2.CheckResult check()
check in class zipkin2.Componentpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class zipkin2.ComponentCopyright © 2016–2017 OpenZipkin. All rights reserved.