Package zipkin2.reporter
Class Call.Base<V>
- java.lang.Object
-
- zipkin2.reporter.Call<V>
-
- zipkin2.reporter.Call.Base<V>
-
- All Implemented Interfaces:
Cloneable
@Deprecated public abstract static class Call.Base<V> extends Call<V>
Deprecated.since 3.2 this is no longer used. This will be removed in v4.0.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class zipkin2.reporter.Call
Call.Base<V>, Call.ErrorHandler<V>, Call.FlatMapper<V1,V2>, Call.Mapper<V1,V2>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Base()
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
cancel()
Deprecated.Requests to cancel this call, even if some implementations may not support it.protected void
doCancel()
Deprecated.protected abstract void
doEnqueue(Callback<V> callback)
Deprecated.protected abstract V
doExecute()
Deprecated.protected boolean
doIsCanceled()
Deprecated.void
enqueue(Callback<V> callback)
Deprecated.Invokes a request asynchronously, signaling thecallback
when complete.V
execute()
Deprecated.Invokes a request, returning a success value or propagating an error to the caller.boolean
isCanceled()
Deprecated.Returns true if Call.cancel() was called.-
Methods inherited from class zipkin2.reporter.Call
clone, create, emptyList, flatMap, handleError, map, propagateIfFatal
-
-
-
-
Method Detail
-
execute
public final V execute() throws IOException
Deprecated.Description copied from class:Call
Invokes a request, returning a success value or propagating an error to the caller. Invoking this more than once will result in an error. To repeat a call, make a copy with Call.clone().Eventhough this is a blocking call, implementations may honor calls to Call.cancel() from a different thread.
- Specified by:
execute
in classCall<V>
- Returns:
- a success value. Null is unexpected, except when
V
is Void. - Throws:
IOException
-
doExecute
protected abstract V doExecute() throws IOException
Deprecated.- Throws:
IOException
-
enqueue
public final void enqueue(Callback<V> callback)
Deprecated.Description copied from class:Call
Invokes a request asynchronously, signaling thecallback
when complete. Invoking this more than once will result in an error. To repeat a call, make a copy with Call.clone().
-
cancel
public final void cancel()
Deprecated.Description copied from class:Call
Requests to cancel this call, even if some implementations may not support it. For example, a blocking call is sometimes not cancelable.
-
doCancel
protected void doCancel()
Deprecated.
-
isCanceled
public final boolean isCanceled()
Deprecated.Description copied from class:Call
Returns true if Call.cancel() was called.Calls can fail before being canceled, so true does always mean cancelation caused a call to fail. That said, successful cancellation does result in a failure.
- Specified by:
isCanceled
in classCall<V>
-
doIsCanceled
protected boolean doIsCanceled()
Deprecated.
-
-