Class EventSubscription<E extends Event>
java.lang.Object
org.openremote.model.event.shared.EventSubscription<E>
A consumer can subscribe to
Event
s on the server, providing the
type of event it wants to receive as well as filter criteria to restrict the
events to an interesting subset.
A subscription can optionally contain a subscriptionId
which allows a client
to have multiple subscriptions for the same event type.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EventSubscription
(Class<E> eventClass) EventSubscription
(Class<E> eventClass, EventFilter<E> filter) EventSubscription
(Class<E> eventClass, EventFilter<E> filter, String subscriptionId) EventSubscription
(String eventType) EventSubscription
(String eventType, EventFilter<E> filter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isEventType
(Class<? extends Event> eventClass) boolean
void
setFilter
(EventFilter<E> filter) void
setSubscribed
(boolean subscribed) toString()
-
Field Details
-
SUBSCRIBE_MESSAGE_PREFIX
- See Also:
-
SUBSCRIBED_MESSAGE_PREFIX
- See Also:
-
eventType
-
filter
-
subscriptionId
-
subscribed
protected boolean subscribed
-
-
Constructor Details
-
EventSubscription
protected EventSubscription() -
EventSubscription
-
EventSubscription
-
-
Method Details