20 #ifndef HAZELCAST_ENTRY_EVENT
21 #define HAZELCAST_ENTRY_EVENT
23 #include "hazelcast/client/Member.h"
24 #include <boost/shared_ptr.hpp>
26 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
28 #pragma warning(disable: 4251) //for dll export
76 void operator = (
int i);
88 template <
typename K,
typename V>
95 boost::shared_ptr<K> key, boost::shared_ptr<V> value)
98 , eventType(eventType)
108 boost::shared_ptr<K> key, boost::shared_ptr<V> value,
109 boost::shared_ptr<V> oldValue, boost::shared_ptr<V> mergingValue)
112 , eventType(eventType)
116 , mergingValue(mergingValue) {
153 return *mergingValue;
187 boost::shared_ptr<K> key;
188 boost::shared_ptr<V> value;
189 boost::shared_ptr<V> oldValue;
190 boost::shared_ptr<V> mergingValue;
196 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
200 #endif //__EntryEvent_H_
EntryEvent(const std::string &name, const Member &member, EntryEventType eventType, boost::shared_ptr< K > key, boost::shared_ptr< V > value, boost::shared_ptr< V > oldValue, boost::shared_ptr< V > mergingValue)
Constructor.
Definition: EntryEvent.h:107
const K & getKey() const
Returns the key of the entry event.
Definition: EntryEvent.h:125
const V & getOldValue() const
Returns the old value of the entry event.
Definition: EntryEvent.h:134
Type
Type enum.
Definition: EntryEvent.h:41
EntryEventType getEventType() const
Return the event type.
Definition: EntryEvent.h:170
Member getMember() const
Returns the member fired this event.
Definition: EntryEvent.h:161
Cluster member class.
Definition: Member.h:44
Map Entry event.
Definition: EntryEvent.h:89
const V & getMErgingValue() const
Returns the incoming merging value of the entry event.
Definition: EntryEvent.h:152
Type value
Type value.
Definition: EntryEvent.h:56
EntryEvent(const std::string &name, const Member &member, EntryEventType eventType, boost::shared_ptr< K > key, boost::shared_ptr< V > value)
Constructor.
Definition: EntryEvent.h:94
Type of entry event.
Definition: EntryEvent.h:36
std::string getName() const
Returns the name of the map for this event.
Definition: EntryEvent.h:179
const V & getValue() const
Returns the value of the entry event.
Definition: EntryEvent.h:143