Apache Ignite.NET
|
Provides functionality for event notifications on nodes defined by ClusterGroup. All members are thread-safe and may be used concurrently from multiple threads. More...
Public Member Functions | |
ICollection< T > | RemoteQuery< T > (IEventFilter< T > filter, TimeSpan?timeout=null, params int[] types) |
Queries nodes in this cluster group for events using passed in predicate filter for event selection. More... | |
Task< ICollection< T > > | RemoteQueryAsync< T > (IEventFilter< T > filter, TimeSpan?timeout=null, params int[] types) |
Queries nodes in this cluster group for events using passed in predicate filter for event selection. More... | |
ICollection< T > | RemoteQuery< T > (IEventFilter< T > filter, TimeSpan?timeout=null, IEnumerable< int > types=null) |
Queries nodes in this cluster group for events using passed in predicate filter for event selection. More... | |
Task< ICollection< T > > | RemoteQueryAsync< T > (IEventFilter< T > filter, TimeSpan?timeout=null, IEnumerable< int > types=null) |
Queries nodes in this cluster group for events using passed in predicate filter for event selection. More... | |
IEvent | WaitForLocal (params int[] types) |
Waits for the specified events. More... | |
Task< IEvent > | WaitForLocalAsync (params int[] types) |
Waits for the specified events. More... | |
IEvent | WaitForLocal (IEnumerable< int > types) |
Waits for the specified events. More... | |
Task< IEvent > | WaitForLocalAsync (IEnumerable< int > types) |
Waits for the specified events. More... | |
T | WaitForLocal< T > (IEventFilter< T > filter, params int[] types) |
Waits for the specified events. More... | |
Task< T > | WaitForLocalAsync< T > (IEventFilter< T > filter, params int[] types) |
Waits for the specified events. More... | |
T | WaitForLocal< T > (IEventFilter< T > filter, IEnumerable< int > types) |
Waits for the specified events. More... | |
Task< T > | WaitForLocalAsync< T > (IEventFilter< T > filter, IEnumerable< int > types) |
Waits for the specified events. More... | |
ICollection< IEvent > | LocalQuery (params int[] types) |
Queries local node for events using of specified types. More... | |
ICollection< IEvent > | LocalQuery (IEnumerable< int > types) |
Queries local node for events using of specified types. More... | |
void | RecordLocal (IEvent evt) |
Records customer user generated event. All registered local listeners will be notified. NOTE: all types in range from 1 to 1000 are reserved for internal Ignite events and should not be used by user-defined events. Attempt to record internal event with this method will cause ArgumentException to be thrown. More... | |
void | LocalListen< T > (IEventListener< T > listener, params int[] types) |
Adds an event listener for local events. Note that listener will be added regardless of whether local node is in this cluster group or not. More... | |
void | LocalListen< T > (IEventListener< T > listener, IEnumerable< int > types) |
Adds an event listener for local events. Note that listener will be added regardless of whether local node is in this cluster group or not. More... | |
bool | StopLocalListen< T > (IEventListener< T > listener, params int[] types) |
Removes local event listener. More... | |
bool | StopLocalListen< T > (IEventListener< T > listener, IEnumerable< int > types) |
Removes local event listener. More... | |
void | EnableLocal (params int[] types) |
Enables provided events. Allows to start recording events that were disabled before. Note that provided events will be enabled regardless of whether local node is in this cluster group or not. More... | |
void | EnableLocal (IEnumerable< int > types) |
Enables provided events. Allows to start recording events that were disabled before. Note that provided events will be enabled regardless of whether local node is in this cluster group or not. More... | |
void | DisableLocal (params int[] types) |
Disables provided events. Allows to stop recording events that were enabled before. Note that specified events will be disabled regardless of whether local node is in this cluster group or not. More... | |
void | DisableLocal (IEnumerable< int > types) |
Disables provided events. Allows to stop recording events that were enabled before. Note that specified events will be disabled regardless of whether local node is in this cluster group or not. More... | |
ICollection< int > | GetEnabledEvents () |
Gets types of enabled events. More... | |
bool | IsEnabled (int type) |
Determines whether the specified event is enabled. More... | |
Properties | |
IClusterGroup | ClusterGroup [get] |
Gets the cluster group to which this instance belongs. More... | |
void Apache.Ignite.Core.Events.IEvents.DisableLocal | ( | params int[] | types | ) |
types | Events to disable. |
void Apache.Ignite.Core.Events.IEvents.DisableLocal | ( | IEnumerable< int > | types | ) |
types | Events to disable. |
void Apache.Ignite.Core.Events.IEvents.EnableLocal | ( | params int[] | types | ) |
types | Events to enable. |
void Apache.Ignite.Core.Events.IEvents.EnableLocal | ( | IEnumerable< int > | types | ) |
types | Events to enable. |
ICollection<int> Apache.Ignite.Core.Events.IEvents.GetEnabledEvents | ( | ) |
bool Apache.Ignite.Core.Events.IEvents.IsEnabled | ( | int | type | ) |
type | Event type. |
void Apache.Ignite.Core.Events.IEvents.LocalListen< T > | ( | IEventListener< T > | listener, |
params int[] | types | ||
) |
T | Type of events. |
listener | Predicate that is called on each received event. If predicate returns false, it will be unregistered and will stop receiving events. |
types | Event types for which this listener will be notified, should not be empty. |
T | : | IEvent |
void Apache.Ignite.Core.Events.IEvents.LocalListen< T > | ( | IEventListener< T > | listener, |
IEnumerable< int > | types | ||
) |
T | Type of events. |
listener | Predicate that is called on each received event. If predicate returns false, it will be unregistered and will stop receiving events. |
types | Event types for which this listener will be notified, should not be empty. |
T | : | IEvent |
ICollection<IEvent> Apache.Ignite.Core.Events.IEvents.LocalQuery | ( | params int[] | types | ) |
types | Event types to be queried. Optional. |
ICollection<IEvent> Apache.Ignite.Core.Events.IEvents.LocalQuery | ( | IEnumerable< int > | types | ) |
types | Event types to be queried. Optional. |
void Apache.Ignite.Core.Events.IEvents.RecordLocal | ( | IEvent | evt | ) |
evt | Locally generated event. |
ArgumentException | If event type is within Ignite reserved range (1 to 1000) |
ICollection<T> Apache.Ignite.Core.Events.IEvents.RemoteQuery< T > | ( | IEventFilter< T > | filter, |
TimeSpan? | timeout = null , |
||
IEnumerable< int > | types = null |
||
) |
T | Type of events. |
filter | Predicate filter used to query events on remote nodes. |
timeout | Maximum time to wait for result, null or 0 to wait forever. |
types | Event types to be queried. |
T | : | IEvent |
ICollection<T> Apache.Ignite.Core.Events.IEvents.RemoteQuery< T > | ( | IEventFilter< T > | filter, |
TimeSpan? | timeout = null , |
||
params int[] | types | ||
) |
T | Type of events. |
filter | Predicate filter used to query events on remote nodes. |
timeout | Maximum time to wait for result, null or 0 to wait forever. |
types | Event types to be queried. |
T | : | IEvent |
Task<ICollection<T> > Apache.Ignite.Core.Events.IEvents.RemoteQueryAsync< T > | ( | IEventFilter< T > | filter, |
TimeSpan? | timeout = null , |
||
params int[] | types | ||
) |
T | Type of events. |
filter | Predicate filter used to query events on remote nodes. |
timeout | Maximum time to wait for result, null or 0 to wait forever. |
types | Event types to be queried. |
T | : | IEvent |
Task<ICollection<T> > Apache.Ignite.Core.Events.IEvents.RemoteQueryAsync< T > | ( | IEventFilter< T > | filter, |
TimeSpan? | timeout = null , |
||
IEnumerable< int > | types = null |
||
) |
T | Type of events. |
filter | Predicate filter used to query events on remote nodes. |
timeout | Maximum time to wait for result, null or 0 to wait forever. |
types | Event types to be queried. |
T | : | IEvent |
bool Apache.Ignite.Core.Events.IEvents.StopLocalListen< T > | ( | IEventListener< T > | listener, |
params int[] | types | ||
) |
T | Type of events. |
listener | Local event listener to remove. |
types | Types of events for which to remove listener. If not specified, then listener will be removed for all types it was registered for. |
T | : | IEvent |
bool Apache.Ignite.Core.Events.IEvents.StopLocalListen< T > | ( | IEventListener< T > | listener, |
IEnumerable< int > | types | ||
) |
T | Type of events. |
listener | Local event listener to remove. |
types | Types of events for which to remove listener. If not specified, then listener will be removed for all types it was registered for. |
T | : | IEvent |
IEvent Apache.Ignite.Core.Events.IEvents.WaitForLocal | ( | params int[] | types | ) |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
IEvent Apache.Ignite.Core.Events.IEvents.WaitForLocal | ( | IEnumerable< int > | types | ) |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
T Apache.Ignite.Core.Events.IEvents.WaitForLocal< T > | ( | IEventFilter< T > | filter, |
params int[] | types | ||
) |
T | Type of events. |
filter | Optional filtering predicate. Event wait will end as soon as it returns false. |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
T | : | IEvent |
T Apache.Ignite.Core.Events.IEvents.WaitForLocal< T > | ( | IEventFilter< T > | filter, |
IEnumerable< int > | types | ||
) |
T | Type of events. |
filter | Optional filtering predicate. Event wait will end as soon as it returns false. |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
T | : | IEvent |
Task<IEvent> Apache.Ignite.Core.Events.IEvents.WaitForLocalAsync | ( | params int[] | types | ) |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
Task<IEvent> Apache.Ignite.Core.Events.IEvents.WaitForLocalAsync | ( | IEnumerable< int > | types | ) |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
Task<T> Apache.Ignite.Core.Events.IEvents.WaitForLocalAsync< T > | ( | IEventFilter< T > | filter, |
params int[] | types | ||
) |
T | Type of events. |
filter | Optional filtering predicate. Event wait will end as soon as it returns false. |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
T | : | IEvent |
Task<T> Apache.Ignite.Core.Events.IEvents.WaitForLocalAsync< T > | ( | IEventFilter< T > | filter, |
IEnumerable< int > | types | ||
) |
T | Type of events. |
filter | Optional filtering predicate. Event wait will end as soon as it returns false. |
types | Types of the events to wait for. If not provided, all events will be passed to the filter. |
T | : | IEvent |
|
get |