19 #ifndef HAZELCAST_CLIENT_ADAPTOR_ENTRYVIEW_H_
20 #define HAZELCAST_CLIENT_ADAPTOR_ENTRYVIEW_H_
24 #include "hazelcast/client/map/DataEntryView.h"
25 #include "hazelcast/client/serialization/pimpl/SerializationService.h"
27 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
29 #pragma warning(disable: 4251) //for dll export
37 template <
typename K,
typename V>
43 MapEntryView(std::auto_ptr<map::DataEntryView> v, serialization::pimpl::SerializationService &srv)
44 : dataView(v), serializationService(srv) {
51 return serializationService.toObject<K>(dataView->getKey());
58 return serializationService.toObject<V>(dataView->getValue());
65 return dataView->getCost();
72 return dataView->getCreationTime();
79 return dataView->getExpirationTime();
86 return dataView->getHits();
93 return dataView->getLastAccessTime();
100 return dataView->getLastStoredTime();
107 return dataView->getLastAccessTime();
114 return dataView->getVersion();
118 std::auto_ptr<map::DataEntryView> dataView;
120 serialization::pimpl::SerializationService &serializationService;
125 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
129 #endif //HAZELCAST_CLIENT_ADAPTOR_ENTRYVIEW_H_
MapEntryView(std::auto_ptr< map::DataEntryView > v, serialization::pimpl::SerializationService &srv)
Constructor.
Definition: MapEntryView.h:43
long getLastStoredTime() const
Definition: MapEntryView.h:99
std::auto_ptr< V > getValue() const
Definition: MapEntryView.h:57
long getLastAccessTime() const
Definition: MapEntryView.h:92
long getExpirationTime() const
Definition: MapEntryView.h:78
long getCreationTime() const
Definition: MapEntryView.h:71
long getHits() const
Definition: MapEntryView.h:85
long getCost() const
Definition: MapEntryView.h:64
std::auto_ptr< K > getKey() const
Definition: MapEntryView.h:50
long getVersion() const
Definition: MapEntryView.h:113
MapEntryView represents a readonly view of a map entry.
Definition: MapEntryView.h:38
long getLastUpdateTime() const
Definition: MapEntryView.h:106