Element <channel> |
Defines one event channel. |
Attribute event-class | Translator: | class |
Class of events transferred through this channel. This is used to enable
direct cast of event arrays from (Object[]) to (AnyClass[]).
This is "Object" by default. |
Attribute log-events | Translator: | boolean |
"true" if you want all events received by this channel to be logged. |
Attribute name (required) (unique) | Translator: | string |
Name of the event channel (used as a unique identifier for that channel). |
Attribute pull-consumer-priority | Translator: | int |
Defines priority of all pull consumers.
The lower the value the higher the priority.
Please note that this does not mean that you can make pull consumers
served before all push consumers, even if you put a very low priority!
In such case, this only means that pull consumers currently waiting
(i.e. calling "pull()") will have their thread unblocked before any
push consumer gets called.
Default value is very high (i.e. lowest priority: pull consumers will
be "served" after all push consumers have been served).
In general, you would not change this value. |
Attribute thread-safe | Translator: | boolean |
"true" if that channel must be made thread safe, i.e. all its methods will
be protected (synchronized) against multiple thread access.
Total thread safety is only necessary for registration and unregistration
of event consumers. If all registration phase is done from a unique thread
at initialization stage, then you can use "false" for this parameter.
The event dispatching (push or pull) is always thread-safe whatever the value of
this parameter. |
Conversion Rules |
<conversion class="net.sourceforge.hiveevents.ChannelContribution"
/>
|