Package zipkin2.reporter.urlconnection
Class URLConnectionSender
- java.lang.Object
-
- zipkin2.reporter.Component
-
- zipkin2.reporter.Sender
-
- zipkin2.reporter.internal.SenderAdapter
-
- zipkin2.reporter.urlconnection.URLConnectionSender
-
- All Implemented Interfaces:
Closeable,BytesMessageSender
public final class URLConnectionSender extends zipkin2.reporter.internal.SenderAdapterReports spans to Zipkin, using its POST endpoint.This sender is thread-safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classURLConnectionSender.Builder-
Nested classes/interfaces inherited from interface zipkin2.reporter.BytesMessageSender
BytesMessageSender.Base
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static URLConnectionSendercreate(String endpoint)Creates a sender that postsEncoding.JSONmessages.protected BytesMessageSenderdelegate()static URLConnectionSender.BuildernewBuilder()URLConnectionSender.BuildertoBuilder()
-
-
-
Method Detail
-
create
public static URLConnectionSender create(String endpoint)
Creates a sender that postsEncoding.JSONmessages.
-
newBuilder
public static URLConnectionSender.Builder newBuilder()
-
toBuilder
public URLConnectionSender.Builder toBuilder()
-
delegate
protected BytesMessageSender delegate()
- Specified by:
delegatein classzipkin2.reporter.internal.SenderAdapter
-
-