public interface ParSeqRestliClient
| Modifier and Type | Method and Description |
|---|---|
<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> |
createTask(com.linkedin.restli.client.Request<T> request)
Creates a task that makes rest.li request and returns response.
|
<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> |
createTask(com.linkedin.restli.client.Request<T> request,
RequestConfigOverrides configOverrides)
Creates a task that makes rest.li request and returns response.
|
<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> |
createTask(com.linkedin.restli.client.Request<T> request,
com.linkedin.r2.message.RequestContext requestContext)
Creates a task that makes rest.li request and returns response.
|
<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> |
createTask(com.linkedin.restli.client.Request<T> request,
com.linkedin.r2.message.RequestContext requestContext,
RequestConfigOverrides configOverrides)
Creates a task that makes rest.li request and returns response.
|
Metrics |
getMetrics()
Returns ParSeq rest.li client's metrics.
|
<T> com.linkedin.parseq.promise.Promise<com.linkedin.restli.client.Response<T>> |
sendRequest(com.linkedin.restli.client.Request<T> request)
Deprecated.
Use higher level API that returns Task instance, see
createTask(Request). This method is
left for backwards compatibility. |
<T> com.linkedin.parseq.promise.Promise<com.linkedin.restli.client.Response<T>> |
sendRequest(com.linkedin.restli.client.Request<T> request,
com.linkedin.r2.message.RequestContext requestContext)
Deprecated.
Use higher level API that returns Task instance, see
createTask(Request, RequestContext). This method is
left for backwards compatibility. |
@Deprecated <T> com.linkedin.parseq.promise.Promise<com.linkedin.restli.client.Response<T>> sendRequest(com.linkedin.restli.client.Request<T> request)
createTask(Request). This method is
left for backwards compatibility.T - type of the resultrequest - to sendcreateTask(Request)@Deprecated <T> com.linkedin.parseq.promise.Promise<com.linkedin.restli.client.Response<T>> sendRequest(com.linkedin.restli.client.Request<T> request, com.linkedin.r2.message.RequestContext requestContext)
createTask(Request, RequestContext). This method is
left for backwards compatibility.T - type of the resultrequest - to sendrequestContext - context for the request<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> createTask(com.linkedin.restli.client.Request<T> request)
T - type of the resultrequest - request to be made<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> createTask(com.linkedin.restli.client.Request<T> request,
RequestConfigOverrides configOverrides)
Passed in configOverrides will override any existing configuration. Not all properties need to be set.
Use RequestConfigOverridesBuilder to create instance of RequestConfigOverrides.
T - type of the resultrequest - request to be madeconfigOverrides - configuration overrides<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> createTask(com.linkedin.restli.client.Request<T> request,
com.linkedin.r2.message.RequestContext requestContext)
T - type of the resultrequest - request to be maderequestContext - context for the request<T> com.linkedin.parseq.Task<com.linkedin.restli.client.Response<T>> createTask(com.linkedin.restli.client.Request<T> request,
com.linkedin.r2.message.RequestContext requestContext,
RequestConfigOverrides configOverrides)
Passed in configOverrides will override any existing configuration. Not all properties need to be set.
Use RequestConfigOverridesBuilder to create instance of RequestConfigOverrides.
T - type of the resultrequest - request to be maderequestContext - context for the requestconfigOverrides - configuration overridesMetrics getMetrics()
Copyright © 2018. All rights reserved.