Package akka.javasdk.client
Interface ViewClient
@DoNotInherit
public interface ViewClient
Not for user extension
-
Method Summary
Modifier and TypeMethodDescription<T,R> ComponentInvokeOnlyMethodRef <R> method(akka.japi.function.Function<T, View.QueryEffect<R>> methodRef) Pass in a View query method reference, e.g.<T,A1, R> ComponentInvokeOnlyMethodRef1 <A1, R> method(akka.japi.function.Function2<T, A1, View.QueryEffect<R>> methodRef) Pass in a View query method reference, e.g.<T,R> ComponentStreamMethodRef <R> stream(akka.japi.function.Function<T, View.QueryStreamEffect<R>> methodRef) Pass in a View query method reference, e.g.<T,A1, R> ComponentStreamMethodRef1 <A1, R> stream(akka.japi.function.Function2<T, A1, View.QueryStreamEffect<R>> methodRef) Pass in a View query method reference, e.g.
-
Method Details
-
method
<T,R> ComponentInvokeOnlyMethodRef<R> method(akka.japi.function.Function<T, View.QueryEffect<R>> methodRef) Pass in a View query method reference, e.g.UserByCity::findIf no result is found, the result of the request will be aNoEntryFoundException -
method
<T,A1, ComponentInvokeOnlyMethodRef1<A1,R> R> method(akka.japi.function.Function2<T, A1, View.QueryEffect<R>> methodRef) Pass in a View query method reference, e.g.UserByCity::findIf no result is found, the result of the request will be a
NoEntryFoundException -
stream
<T,R> ComponentStreamMethodRef<R> stream(akka.japi.function.Function<T, View.QueryStreamEffect<R>> methodRef) Pass in a View query method reference, e.g.UserByCity::findAllInCity -
stream
<T,A1, ComponentStreamMethodRef1<A1,R> R> stream(akka.japi.function.Function2<T, A1, View.QueryStreamEffect<R>> methodRef) Pass in a View query method reference, e.g.UserByCity::findAllInCity- Type Parameters:
A1- the type of parameter expected by the call
-