Package org.cyclos.impl.utils
Interface PushNotificationHandlerImplementor
-
- All Superinterfaces:
PushNotificationHandler
public interface PushNotificationHandlerImplementor extends PushNotificationHandler
Handler for using push notifications
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose(String id)Closes a subscription.voiddoDispatch(PushNotificationSubscription subscription, PushNotificationEvent<?> event)Perform a local dispatching of the eventvoidinvalidate(String id)Locally invalidates the data for the subscription with the given idStringsubscribe(String clientId, PushNotificationEventFilter filter, Consumer<PushNotificationEvent<?>> listener)Subscribes a new listener events of the given types, for the user expressed in the currentSessionData.voidtimeout(String id)Marks a subscription as timed-out.-
Methods inherited from interface org.cyclos.impl.utils.PushNotificationHandler
publish, publish
-
-
-
-
Method Detail
-
close
void close(String id)
Closes a subscription.
-
doDispatch
void doDispatch(PushNotificationSubscription subscription, PushNotificationEvent<?> event)
Perform a local dispatching of the event
-
invalidate
void invalidate(String id)
Locally invalidates the data for the subscription with the given id
-
subscribe
String subscribe(String clientId, PushNotificationEventFilter filter, Consumer<PushNotificationEvent<?>> listener)
Subscribes a new listener events of the given types, for the user expressed in the currentSessionData. Returns an identifier for this subscription, which can then be passed in to eithertimeout(String)orclose(String)
-
timeout
void timeout(String id)
Marks a subscription as timed-out.
-
-