/** * Emits given incremental update to subscription queries matching given filter. If an {@code update} is {@code * null}, emit will be skipped. In order to send nullable updates, use {@link #emit(Class, Predicate, * SubscriptionQueryUpdateMessage)} or {@link #emit(Predicate, SubscriptionQueryUpdateMessage)} methods. * * @param filter predicate on subscription query message used to filter subscription queries * @param update incremental update * @param <U> the type of the update */ default <U> void emit(Predicate<SubscriptionQueryMessage<?, ?, U>> filter, U update) { if (update != null) { emit(filter, GenericSubscriptionQueryUpdateMessage.asUpdateMessage(update)); } }
/** * Emits given incremental update to subscription queries matching given query type and filter. If an {@code update} * is {@code null}, emit will be skipped. In order to send nullable updates, use {@link #emit(Class, Predicate, * SubscriptionQueryUpdateMessage)} or {@link #emit(Predicate, SubscriptionQueryUpdateMessage)} methods. * * @param queryType the type of the query * @param filter predicate on query payload used to filter subscription queries * @param update incremental update * @param <Q> the type of the query * @param <U> the type of the update */ default <Q, U> void emit(Class<Q> queryType, Predicate<? super Q> filter, U update) { if (update != null) { emit(queryType, filter, GenericSubscriptionQueryUpdateMessage.asUpdateMessage(update)); } }
/** * Emits given incremental update to subscription queries matching given filter. If an {@code update} is {@code * null}, emit will be skipped. In order to send nullable updates, use {@link #emit(Class, Predicate, * SubscriptionQueryUpdateMessage)} or {@link #emit(Predicate, SubscriptionQueryUpdateMessage)} methods. * * @param filter predicate on subscription query message used to filter subscription queries * @param update incremental update * @param <U> the type of the update */ default <U> void emit(Predicate<SubscriptionQueryMessage<?, ?, U>> filter, U update) { if (update != null) { emit(filter, GenericSubscriptionQueryUpdateMessage.asUpdateMessage(update)); } }
/** * Emits given incremental update to subscription queries matching given filter. If an {@code update} is {@code * null}, emit will be skipped. In order to send nullable updates, use {@link #emit(Class, Predicate, * SubscriptionQueryUpdateMessage)} or {@link #emit(Predicate, SubscriptionQueryUpdateMessage)} methods. * * @param filter predicate on subscription query message used to filter subscription queries * @param update incremental update * @param <U> the type of the update */ default <U> void emit(Predicate<SubscriptionQueryMessage<?, ?, U>> filter, U update) { if (update != null) { emit(filter, GenericSubscriptionQueryUpdateMessage.asUpdateMessage(update)); } }
/** * Emits given incremental update to subscription queries matching given query type and filter. If an {@code update} * is {@code null}, emit will be skipped. In order to send nullable updates, use {@link #emit(Class, Predicate, * SubscriptionQueryUpdateMessage)} or {@link #emit(Predicate, SubscriptionQueryUpdateMessage)} methods. * * @param queryType the type of the query * @param filter predicate on query payload used to filter subscription queries * @param update incremental update * @param <Q> the type of the query * @param <U> the type of the update */ default <Q, U> void emit(Class<Q> queryType, Predicate<? super Q> filter, U update) { if (update != null) { emit(queryType, filter, GenericSubscriptionQueryUpdateMessage.asUpdateMessage(update)); } }
/** * Emits given incremental update to subscription queries matching given query type and filter. If an {@code update} * is {@code null}, emit will be skipped. In order to send nullable updates, use {@link #emit(Class, Predicate, * SubscriptionQueryUpdateMessage)} or {@link #emit(Predicate, SubscriptionQueryUpdateMessage)} methods. * * @param queryType the type of the query * @param filter predicate on query payload used to filter subscription queries * @param update incremental update * @param <Q> the type of the query * @param <U> the type of the update */ default <Q, U> void emit(Class<Q> queryType, Predicate<? super Q> filter, U update) { if (update != null) { emit(queryType, filter, GenericSubscriptionQueryUpdateMessage.asUpdateMessage(update)); } }