Interface Query<R>
-
- Type Parameters:
R- the type of the result
public interface Query<R>TheQueriesinterface to be used with theQueryResolver- See Also:
- EventMaid Documentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanfinished()Method to preemptive stop the delivery of aQueryto itsSubscribers.Rresult()Returns the result once theQueryhas finished or nur furtherSubscribersexist.
-
-
-
Method Detail
-
result
R result()
Returns the result once theQueryhas finished or nur furtherSubscribersexist.- Returns:
- the result
-
finished
default boolean finished()
Method to preemptive stop the delivery of aQueryto itsSubscribers.- Returns:
trueif stop delivery orfalseotherwise
-
-