public class SVEventSubscription
extends java.lang.Object
ControlUnitProxy#subscribe| Modifier and Type | Field and Description |
|---|---|
protected long |
eventTimeout
Max timeout (in milliseconds) after which an event should be delivered.
|
protected java.lang.String |
expiredEventsFilter
Expired events filter.
|
protected java.util.Dictionary |
listenerRegProps
Registration properties of the listener service.
|
| Constructor and Description |
|---|
SVEventSubscription()
Empty constructor.
|
SVEventSubscription(java.util.Dictionary listenerRegProps,
java.lang.String expiredEventsFilter,
long eventTimeout)
Creates a
SVEventSubscription object with given event filter and attirubtes specifying the
event delivering behavior. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExpiredEventsFilter()
Returns the filter for expired events in this subscription.
|
java.util.Dictionary |
getListenerRegProps()
Returns registration properties of the listener service.
|
long |
getTimeout()
Returns the event timeout for this subscription.
|
void |
read(java.io.DataInputStream in)
Method used for serialization.
|
void |
write(java.io.DataOutputStream out)
Method used for serialization.
|
protected java.util.Dictionary listenerRegProps
protected java.lang.String expiredEventsFilter
protected long eventTimeout
public SVEventSubscription()
public SVEventSubscription(java.util.Dictionary listenerRegProps,
java.lang.String expiredEventsFilter,
long eventTimeout)
SVEventSubscription object with given event filter and attirubtes specifying the
event delivering behavior.listenerRegProps - registration properties of the listener service. The StateVariableListener
on the target framework to serve this subscription shall be registered with the registration properties
applied with this argument.expiredEventsFilter - - filter in ldap form, specifying the sub set of state variable events for which
all events (even the expired ones) should be delivered. An event is considered as expired if in the current
event chunk of non-sent events, a state variable has been changed more than once. In this case, only the last
event for this state variable is not considered as expired. By default the expired events are not sent, because
they have no sense, since the subsequent event is overriding the state variable value. Expired event notifications
are suitable for state machine applications that need the complete event sequence to realize their logic.eventTimeout - max timeout (in milliseconds) after which a state variable
event should be delivered. Zero or negative number means that every event should
be delivered without any delay. If it is a negative number – then the event
notification shall be sent immediately within synchronous messages.
public java.util.Dictionary getListenerRegProps()
public long getTimeout()
public java.lang.String getExpiredEventsFilter()
public void read(java.io.DataInputStream in)
throws java.io.IOException
in - input stream.java.io.IOException - if error while reading data occurs.public void write(java.io.DataOutputStream out)
throws java.io.IOException
out - output stream.java.io.IOException - error while writing data occurs.Copyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.