Event objects are delivered to EventHandler services which
subscribe to the topic of the event.
| Modifier and Type | Class and Description |
|---|---|
| private static class | Event.
Dictionary to use for Filter matching. |
| Modifier and Type | Field and Description |
|---|---|
| private final EventProperties | properties
The properties carried by this event. |
| private final String | topic
The topic of this event. |
| Access | Constructor and Description |
|---|---|
| public | Event(String
The topic of the event. topic, Map<String, ?> The event's properties (may be properties)null). A
property whose key is not of type String will be ignored.
If the specified properties is an EventProperties object,
then it will be directly used. Otherwise, a copy of the specified
properties is made.Constructs an event. |
| public | Event(String
The topic of the event. topic, Dictionary<String, ?> The event's properties (may be properties)null). A
property whose key is not of type String will be ignored.
A copy of the specified properties is made.Constructs an event. |
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | Returns: true if a property with the specified name is in the
event. This property may have a null value. false
otherwise.The name of the property. name)Indicate the presence of an event property. |
| public boolean | Returns: true if object is a Event and is equal to
this object; false otherwise.The object)Event object to be compared.Overrides java. Compares this |
| public final Object | Returns: The value of the property, ornull if not found.The name of the property to retrieve. name)Retrieve the value of an event property. |
| public final String[] | Returns: A non-empty array with one element per property.Returns a list of this event's property names. |
| public final String | |
| public int | Returns: An integer which is a hash code value for this object.Overrides java. Returns a hash code value for this object. |
| public final boolean | |
| public String | Returns: The string representation of this event.Overrides java. Returns the string representation of this event. |
| private static void | validateTopicName(String
The topic name to validate. topic)Called by the constructor to validate the topic name. |
| properties | back to summary |
|---|---|
| private final EventProperties properties The properties carried by this event. Keys are strings and values are objects | |
| topic | back to summary |
|---|---|
| private final String topic The topic of this event. | |
| Event | back to summary |
|---|---|
| public Event(String topic, Map<String, ?> properties) Constructs an event.
| |
| Event | back to summary |
|---|---|
| public Event(String topic, Dictionary<String, ?> properties) Constructs an event.
| |
| containsProperty | back to summary |
|---|---|
| public final boolean containsProperty(String name) Indicate the presence of an event property. The event topic is present using the property name "event.topics".
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Compares this
An event is considered to be equal to another event if the topic
is equal and the properties are equal. The properties are compared using
the | |
| getProperty | back to summary |
|---|---|
| public final Object getProperty(String name) Retrieve the value of an event property. The event topic may be retrieved with the property name "event.topics". | |
| getPropertyNames | back to summary |
|---|---|
| public final String[] getPropertyNames() Returns a list of this event's property names. The list will include the event topic property name "event.topics".
| |
| getTopic | back to summary |
|---|---|
| public final String getTopic() Returns the topic of this event.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for this object.
| |
| matches | back to summary |
|---|---|
| public final boolean matches(Filter filter) Tests this event's properties against the given filter using a case sensitive match.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns the string representation of this event. | |
| validateTopicName | back to summary |
|---|---|
| private static void validateTopicName(String topic) Called by the constructor to validate the topic name.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final EventProperties | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Enumeration | elements()
Implements abstract java. Returns an enumeration of the values in this dictionary. |
| public Object | get(Object
a key in this dictionary.
key)null if the key is not mapped to any value in
this dictionary.Implements abstract java. Returns the value to which the key is mapped in this dictionary. |
| public boolean | isEmpty()
Implements abstract java. Tests if this dictionary maps no keys to value. |
| public Enumeration | keys()
Implements abstract java. Returns an enumeration of the keys in this dictionary. |
| public Object | put(String
the hashtable key. key, Object the value. value)Implements abstract java. Maps the specified |
| public Object | remove(Object
the key that needs to be removed. key)Implements abstract java. Removes the |
| public int | size()
Implements abstract java. Returns the number of entries (distinct keys) in this dictionary. |
| properties | back to summary |
|---|---|
| private final EventProperties properties | |
| topic | back to summary |
|---|---|
| private final String topic | |
| FilterProperties | back to summary |
|---|---|
| pack-priv FilterProperties(String topic, EventProperties properties) | |
| elements | back to summary |
|---|---|
| public Enumeration Implements abstract java. Doc from java. Returns an enumeration of the values in this dictionary. The general
contract for the
| |
| get | back to summary |
|---|---|
| public Object get(Object key) Implements abstract java. Doc from java. Returns the value to which the key is mapped in this dictionary.
The general contract for the | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements abstract java. Doc from java. Tests if this dictionary maps no keys to value. The general contract
for the
| |
| keys | back to summary |
|---|---|
| public Enumeration Implements abstract java. Doc from java. Returns an enumeration of the keys in this dictionary. The general
contract for the keys method is that an
| |
| put | back to summary |
|---|---|
| public Object put(String key, Object value) Implements abstract java. Doc from java. Maps the specified
If this dictionary already contains an entry for the specified
If this dictionary does not already have an entry
for the specified
The | |
| remove | back to summary |
|---|---|
| public Object remove(Object key) Implements abstract java. Doc from java. Removes the | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Doc from java. Returns the number of entries (distinct keys) in this dictionary.
| |