|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.linkedin.d2.contrib.RouteLookupClient
public class RouteLookupClient
RouteLookupClient can be used to send normal RestRequests as well as request that require a RouteLookup. A RouteLookup can do any action, as long as they implement the interface. Currently, only RestRequests are supported in RouteLookupClient when using a RouteLookup.
| Constructor Summary | |
|---|---|
RouteLookupClient(com.linkedin.r2.transport.common.Client client,
RouteLookup routeLookup,
java.lang.String routingGroup)
|
|
| Method Summary | |
|---|---|
void |
restRequest(com.linkedin.r2.message.rest.RestRequest request,
com.linkedin.common.callback.Callback<com.linkedin.r2.message.rest.RestResponse> callback,
java.lang.String routeKey)
This function can be used to send a restRequest with an additional routeKey to determine the appropriate d2 service to use for routing the request. |
void |
restRequest(com.linkedin.r2.message.rest.RestRequest request,
com.linkedin.r2.message.RequestContext requestContext,
com.linkedin.common.callback.Callback<com.linkedin.r2.message.rest.RestResponse> callback,
java.lang.String routeKey)
This function can be used to send a restRequest with an additional routeKey to determine the appropriate d2 service to use for routing the request. |
java.util.concurrent.Future<com.linkedin.r2.message.rest.RestResponse> |
restRequest(com.linkedin.r2.message.rest.RestRequest request,
com.linkedin.r2.message.RequestContext requestContext,
java.lang.String routekey)
This function can be used to send a restRequest with an additional routeKey to determine the appropriate d2 service to use for routing the request. |
java.util.concurrent.Future<com.linkedin.r2.message.rest.RestResponse> |
restRequest(com.linkedin.r2.message.rest.RestRequest request,
java.lang.String routeKey)
This function can be used to send a restRequest with an additional routeKey to determine the appropriate d2 service to use for routing the request. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RouteLookupClient(com.linkedin.r2.transport.common.Client client,
RouteLookup routeLookup,
java.lang.String routingGroup)
| Method Detail |
|---|
public void restRequest(com.linkedin.r2.message.rest.RestRequest request,
com.linkedin.common.callback.Callback<com.linkedin.r2.message.rest.RestResponse> callback,
java.lang.String routeKey)
RoutingAwareClient
restRequest in interface RoutingAwareClientrequest - original rest requestcallback - used to return the new service name.routeKey - key used to determine a new service name.
public void restRequest(com.linkedin.r2.message.rest.RestRequest request,
com.linkedin.r2.message.RequestContext requestContext,
com.linkedin.common.callback.Callback<com.linkedin.r2.message.rest.RestResponse> callback,
java.lang.String routeKey)
RoutingAwareClient
restRequest in interface RoutingAwareClientrequest - original rest requestrequestContext - request contextcallback - used to return the new service name.routeKey - key used to determine a new service name.
public java.util.concurrent.Future<com.linkedin.r2.message.rest.RestResponse> restRequest(com.linkedin.r2.message.rest.RestRequest request,
java.lang.String routeKey)
RoutingAwareClient
restRequest in interface RoutingAwareClientrequest - original rest requestrouteKey - key used to determine a new service name.
public java.util.concurrent.Future<com.linkedin.r2.message.rest.RestResponse> restRequest(com.linkedin.r2.message.rest.RestRequest request,
com.linkedin.r2.message.RequestContext requestContext,
java.lang.String routekey)
RoutingAwareClient
restRequest in interface RoutingAwareClientrequest - original rest requestrequestContext - request contextroutekey - key used to determine a new service name.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||