RemoteEvent Class Reference

List of all members.


Detailed Description

RemoteEvent object includes a reference to the object in which the event occurred, an int which identifies the kind of event relative to the object in which the event occurred, a long long which indicates the sequence number of this instance of the event kind.

The combination of the event identifier and the object reference obtained from the RemoteEvent object should uniquely identify the event type.

The sequence number obtained from the RemoteEvent object is an increasing value that can act as a hint to the number of occurrences of this event relative to some earlier sequence number.

A stronger guarantee is possible for those generators of RemoteEvents that can support it. This guarantee states that not only do sequence numbers increase, but they are not skipped. In such a case, if RemoteEvent x and y have the same source and the same event identifier, and x has sequence number m and y has sequence number n, then if m < n there were exactly n-m-1 events of the same event type between the event that triggered x and the event that triggered y. Such sequence numbers are said to be "fully ordered".

An event registration that occurs within a transaction is considered to be scoped by that transaction. This means that any occurrence of the kind of event of interest that happens as part of the transaction will cause a notification to be sent to the recipients indicated by the registration that occurred in the transaction. Such events must have a separate event identifier to allow third-party store and forward entities to distinguish between an event that happens within a transaction and those that happen outside of the transaction. Notifications of these events will not be sent to entities that registered interest in this kind of event outside the scope of the transaction until and unless the transaction is committed.

Because of this, notifications sent from inside a transaction will have a different sequence number than the notifications of the same events would have outside of the transaction. Within a transaction, all RemoteEvent objects for a given kind of event are given a sequence number relative to the transaction. This is true even if the event that triggered the RemoteEvent object being sent occurs outside of the scope of the transaction (but is visible within the transaction).

See also:
IRemoteEventListener,EventSessionFactory,EventSessionConfig,DataEventSession,EventSession,EventRegistration,RemoteEvent

Public Member Functions

IEntrygetIEntry () const
int getNotiftyType () const
long long getSequenceNumber () const
 RemoteEvent (IEntry *pIEntry, int NotifyType, long long sequenceNumber)

Protected Member Functions

void setIEntry (IEntry *val)
void setNotiftyType (int val)
void setSequenceNumber (long long val)

Protected Attributes

int m_notiftyType
IEntrym_pIEntry
long long m_sequenceNumber

Generated on Mon Mar 8 18:26:04 2010 for GigaSpaces XAP 7.1.X C++ by  doxygen 1.5.3