Package org.saidone.restless.client
Class PersonServiceClient
java.lang.Object
org.saidone.restless.client.PersonServiceClient
Reads person profiles using the shared Alfresco ticket and call deadline.
-
Constructor Summary
ConstructorsConstructorDescriptionPersonServiceClient(io.grpc.Channel channel, TicketProvider tickets, Duration deadline) Uses the supplied gRPC channel and borrows it for the lifetime of the client.PersonServiceClient(org.saidone.restless.api.PersonServiceGrpc.PersonServiceBlockingStub stub, TicketProvider tickets, Duration deadline) Uses a preconfigured stub and retains its call options, applying the per-attempt deadline. -
Method Summary
-
Constructor Details
-
PersonServiceClient
Uses the supplied gRPC channel and borrows it for the lifetime of the client.- Parameters:
channel- caller-owned gRPC channeltickets- provider of the authenticated Alfresco caller's ticketdeadline- per-attempt RPC deadline
-
PersonServiceClient
public PersonServiceClient(org.saidone.restless.api.PersonServiceGrpc.PersonServiceBlockingStub stub, TicketProvider tickets, Duration deadline) Uses a preconfigured stub and retains its call options, applying the per-attempt deadline.- Parameters:
stub- caller-supplied service stubtickets- provider of the authenticated Alfresco caller's ticketdeadline- per-attempt RPC deadline
-
-
Method Details
-
getPerson
Looks up a person by ID. Use-me-for the authenticated caller.
-