public final class EventScope
extends java.lang.Enum
Title: Service Event Fabric Core
Description: Defines the types of scope that an event generated by a fabric component may have.
Service Event Fabric
.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static EventScope |
CLUSTER
A
CLUSTER event scope indicates that event can be sent to all fabric nodes
that belong to the same cluster. |
static EventScope |
GLOBAL
A
GLOBAL event scope indicates that in addition to being an OBSERVABLE
event, the event is propagated to all fabric nodes that are interested in consuming it. |
static EventScope |
INHERITED
A default setting implies that the actual event scope setting will be taken from the Component's settings.
|
static EventScope |
LOCAL
A component with a scope of
LOCAL scope may only
engage in message passing using it's own event dispatcher. |
static EventScope |
OBSERVABLE
An
OBSERVABLE event scope results in the component being bound to
the Exchange . |
Modifier and Type | Method and Description |
---|---|
static EventScope |
valueOf(java.lang.String name) |
static EventScope[] |
values() |
public static final EventScope INHERITED
public static final EventScope LOCAL
LOCAL
scope may only
engage in message passing using it's own event dispatcher. Events
raised by the component can only be seen and processed by the
component itself. The component is not bound to the Exchange
and may not see or process any external events.
Note that this still allows a component to expose Actionable Events and define Event Triggers on such events.
public static final EventScope OBSERVABLE
OBSERVABLE
event scope results in the component being bound to
the Exchange
. This allows all other components within the runtime (JVM)
to see and process this components events. Likewise this component can see and
process events raised by any other component with a similar scope.
Note that it is possible for components with a higher scope, such as GLOBAL
to act as 'routers', thereby connecting the component to external nodes and clients.
public static final EventScope CLUSTER
CLUSTER
event scope indicates that event can be sent to all fabric nodes
that belong to the same cluster.
CLUSTER
may receive and process events from other nodes
that belong to the same cluster.public static final EventScope GLOBAL
GLOBAL
event scope indicates that in addition to being an OBSERVABLE
event, the event is propagated to all fabric nodes that are interested in consuming it. Likewise
event consumers with a scope of GLOBAL
may receive and process events from other
other with the same scope.
This setting has implications for components bound into the runtime and for general visibility of
the topology. GLOBAL
component definitions are automatically replicated to the
participant nodes and exposed as remote entities (proxies) ensuring that all participants are
organized into a single namespace.
public static EventScope[] values()
public static EventScope valueOf(java.lang.String name)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.