Search in sources :

Example 1 with QuickRpcClient

use of com.tvd12.quick.rpc.client.QuickRpcClient in project ezyfox-examples by tvd12.

the class HelloWorldRpcClientExample method main.

public static void main(String[] args) throws Exception {
    QuickRpcClient client = QuickRpcClient.builder().scan("com.tvd12.quick.rpc.examples.hello_world.data").build();
    GreetResponse response = client.call(new GreetRequest("World"), GreetResponse.class);
    System.out.println(response.getMessage());
}
Also used : GreetResponse(com.tvd12.quick.rpc.examples.hello_world.data.GreetResponse) GreetRequest(com.tvd12.quick.rpc.examples.hello_world.data.GreetRequest) QuickRpcClient(com.tvd12.quick.rpc.client.QuickRpcClient)

Aggregations

QuickRpcClient (com.tvd12.quick.rpc.client.QuickRpcClient)1 GreetRequest (com.tvd12.quick.rpc.examples.hello_world.data.GreetRequest)1 GreetResponse (com.tvd12.quick.rpc.examples.hello_world.data.GreetResponse)1