@ SuppressWarnings ( "unchecked" ) public void queue ( Consumer < ? super T > success , Consumer < ? super Throwable > failure ) { Route . CompiledRoute route = finalizeRoute ( ) ; Checks . notNull ( route , "Route" ) ; RequestBody data = finalizeData ( ) ; CaseInsensitiveMap < String , String > headers = finalizeHeaders ( ) ; BooleanSupplier finisher = getFinisher ( ) ; if ( success == null ) success = DEFAULT_SUCCESS == null ? FALLBACK_CONSUMER : DEFAULT_SUCCESS ; if ( failure == null ) failure = DEFAULT_FAILURE == null ? FALLBACK_CONSUMER : DEFAULT_FAILURE ; api . get ( ) . getRequester ( ) . request ( new Request <> ( this , success , failure , finisher , true , data , rawData , route , headers ) ) ; }
Submits a Request for execution .