Package zipkin2
Class Call.Base<V>
java.lang.Object
zipkin2.Call<V>
zipkin2.Call.Base<V>
- All Implemented Interfaces:
- Cloneable
public abstract static class Call.Base<V> extends Call<V>
- 
Nested Class SummaryNested classes/interfaces inherited from class zipkin2.CallCall.Base<V>, Call.ErrorHandler<V>, Call.FlatMapper<V1,V2>, Call.Mapper<V1,V2>
- 
Constructor SummaryConstructors Modifier Constructor Description protectedBase()
- 
Method SummaryModifier and Type Method Description voidcancel()Requests to cancel this call, even if some implementations may not support it.protected voiddoCancel()protected abstract voiddoEnqueue(Callback<V> callback)protected abstract VdoExecute()protected booleandoIsCanceled()voidenqueue(Callback<V> callback)Invokes a request asynchronously, signaling thecallbackwhen complete.Vexecute()Invokes a request, returning a success value or propagating an error to the caller.booleanisCanceled()Returns true if Call.cancel() was called.Methods inherited from class zipkin2.Callclone, create, emptyList, flatMap, handleError, map, propagateIfFatal
- 
Constructor Details- 
Baseprotected Base()
 
- 
- 
Method Details- 
executeDescription copied from class:CallInvokes 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:
- executein class- Call<V>
- Returns:
- a success value. Null is unexpected, except when Vis Void.
- Throws:
- IOException
 
- 
doExecute- Throws:
- IOException
 
- 
enqueueDescription copied from class:CallInvokes a request asynchronously, signaling thecallbackwhen complete. Invoking this more than once will result in an error. To repeat a call, make a copy with Call.clone().
- 
doEnqueue
- 
cancelpublic final void cancel()Description copied from class:CallRequests to cancel this call, even if some implementations may not support it. For example, a blocking call is sometimes not cancelable.
- 
doCancelprotected void doCancel()
- 
isCanceledpublic final boolean isCanceled()Description copied from class:CallReturns 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:
- isCanceledin class- Call<V>
 
- 
doIsCanceledprotected boolean doIsCanceled()
 
-