Package akka.javasdk.annotations
Annotation Interface Query
Annotation used in the scope of a view for providing the query that will be used to explore data
from that view.
Note: the actual method implementation is never actually executed, but the return type must be either
View.QueryEffect
or View.QueryStreamEffect
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
For a query that returns aView.QueryStreamEffect
, instead of completing the stream once the end of the result is reached, keep tailing the query and emit updates to the stream as the view is updated.
-
Element Details
-
value
String valueAssigns the actual query which makes use of the enclosing entity table name as source of data for composition. -
streamUpdates
boolean streamUpdatesFor a query that returns aView.QueryStreamEffect
, instead of completing the stream once the end of the result is reached, keep tailing the query and emit updates to the stream as the view is updated.- Default:
false
-