@ApiStatus.Internal public final class AsyncConnection extends java.lang.Object implements java.io.Closeable, Connection
Constructor and Description |
---|
AsyncConnection(ITransport transport,
ITransportGate transportGate,
IEnvelopeCache envelopeCache,
int maxQueueSize,
SentryOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
send(@NotNull SentryEnvelope envelope,
@Nullable java.lang.Object hint) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
send
public AsyncConnection(ITransport transport, ITransportGate transportGate, IEnvelopeCache envelopeCache, int maxQueueSize, SentryOptions options)
public void send(@NotNull @NotNull SentryEnvelope envelope, @Nullable @Nullable java.lang.Object hint) throws java.io.IOException
send
in interface Connection
java.io.IOException
public void close() throws java.io.IOException
close
in interface Connection
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException