DefaultEventManager Class Reference

Inherits from NSObject
Conforms to EventManager
Declared in DefaultEventManager.h
DefaultEventManager.m

Overview

Default EventManager implementation.

– fillEventListenersSyncRequest:

Adds new event listener requests to the given Sync request.

- (void)fillEventListenersSyncRequest:(EventSyncRequest *)request

Parameters

request

Event sync request.

Discussion

Adds new event listener requests to the given Sync request.

Declared In

EventManger.h

– clearState

Clears the current manager’s state.

- (void)clearState

Discussion

Clears the current manager’s state.

Declared In

EventManger.h

– produceEventWithFQN:data:target:

Creates an Event and passes it to OPS

- (void)produceEventWithFQN:(NSString *)eventFQN data:(NSData *)data target:(NSString *)target

Parameters

eventFqn

Fully qualified name of the Event

data

Event data

target

Event target, nil for event broadcasting.

Discussion

Creates an Event and passes it to OPS

Declared In

EventManger.h

– produceEventWithFQN:data:target:transactionId:

Creates an Event and passes it to OPS

- (void)produceEventWithFQN:(NSString *)eventFQN data:(NSData *)data target:(NSString *)target transactionId:(TransactionId *)transactionId

Parameters

eventFqn

Fully qualified name of the Event

data

Event data

target

Event target, nil for event broadcasting.

trxId

Transaction Id of event

Discussion

Creates an Event and passes it to OPS

Declared In

EventManger.h

– registerEventFamily:

Add event family object which can handle specified event.

- (void)registerEventFamily:(id<BaseEventFamily>)eventFamily

Discussion

Add event family object which can handle specified event.

Declared In

EventManger.h

– onGenericEvent:withData:fromSource:

Retrieves an event.

- (void)onGenericEvent:(NSString *)eventFQN withData:(NSData *)data fromSource:(NSString *)source

Parameters

eventFqn

Fully qualified name of the Event

data

Event data

source

Event source

Discussion

Retrieves an event.

Declared In

EventManger.h

– eventListenersResponseReceived:

Called when SyncResponse contains resolved array of endpoints which support FQNs given in a request before.

- (void)eventListenersResponseReceived:(NSArray *)response

Parameters

response

Array of responses.

Discussion

Called when SyncResponse contains resolved array of endpoints which support FQNs given in a request before.

Declared In

EventManger.h

– pollPendingEvents

Retrieves and clears list of pending events and removes them from EventManager.

- (NSArray *)pollPendingEvents

Return Value

Array of objects

Discussion

Retrieves and clears list of pending events and removes them from EventManager.

Declared In

EventManger.h

– peekPendingEvents

Peek but not clear list of pending events and removes them from EventManager.

- (NSArray *)peekPendingEvents

Return Value

Array of objects

Discussion

Peek but not clear list of pending events and removes them from EventManager.

Declared In

EventManger.h

– engageDataChannel

Restrict manager to use data channel until releaseDataChannel is called.

- (void)engageDataChannel

Discussion

Restrict manager to use data channel until releaseDataChannel is called.

Declared In

EventManger.h

– releaseDataChannel

Allow manager to use data channel.

- (BOOL)releaseDataChannel

Return Value

YES if there is data to be sent via data channel
NO otherwise

Discussion

Allow manager to use data channel.

Declared In

EventManger.h