Skip to content

Commit

Permalink
chore: KalixClient deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
aludwiko committed Jun 27, 2023
1 parent 8c7b5d2 commit b04337b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import kalix.javasdk.DeferredCall
* Utility to send requests to other Kalix components by composing a DeferredCall. The target component endpoint should
* belong to a service on the same project.
*/
@deprecated(message = "Use ComponentClient instead.", since = "1.3.0")
trait KalixClient {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ final class RestKalixClientImpl(messageCodec: JsonMessageCodec) extends KalixCli
returnType: Class[R]): RestDeferredCall[Any, R] = {

matchMethodOrThrow(httpMethod, pathTemplate) { httpDef =>
requestToRestDefCall2(
typedRequestToRestDefCall(
pathVariables,
queryParams,
None,
Expand Down Expand Up @@ -283,7 +283,7 @@ final class RestKalixClientImpl(messageCodec: JsonMessageCodec) extends KalixCli
returnType: Class[R]): RestDeferredCall[Any, R] = {

matchMethodOrThrow(httpMethod, pathTemplate) { httpDef =>
requestToRestDefCall2(
typedRequestToRestDefCall(
pathVariables,
queryParams,
body,
Expand Down Expand Up @@ -323,7 +323,7 @@ final class RestKalixClientImpl(messageCodec: JsonMessageCodec) extends KalixCli
}
}

private def requestToRestDefCall2[P, R](
private def typedRequestToRestDefCall[P, R](
pathVariables: Map[String, scala.Any],
queryParams: Map[String, util.List[scala.Any]],
body: Option[P],
Expand Down

0 comments on commit b04337b

Please sign in to comment.