InfinispanHotRodC++Client  8.2.0.Alpha1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
infinispan::hotrod::event::ClientCacheEntryModifiedEvent< K > Class Template Reference

#include <ClientEvent.h>

Inheritance diagram for infinispan::hotrod::event::ClientCacheEntryModifiedEvent< K >:
infinispan::hotrod::event::ClientEvent

Public Member Functions

 ClientCacheEntryModifiedEvent (K key, uint64_t version, int commandRetried)
 
getKey ()
 
uint64_t getVersion ()
 
bool isCommandRetried ()
 
uint8_t getType ()
 
- Public Member Functions inherited from infinispan::hotrod::event::ClientEvent
virtual ~ClientEvent ()
 

Additional Inherited Members

- Public Types inherited from infinispan::hotrod::event::ClientEvent
enum  Type {
  CLIENT_CACHE_ENTRY_CREATED, CLIENT_CACHE_ENTRY_MODIFIED, CLIENT_CACHE_ENTRY_REMOVED, CLIENT_CACHE_ENTRY_EXPIRED,
  CLIENT_CACHE_ENTRY_CUSTOM, CLIENT_CACHE_FAILOVER
}
 

Constructor & Destructor Documentation

template<class K>
infinispan::hotrod::event::ClientCacheEntryModifiedEvent< K >::ClientCacheEntryModifiedEvent ( key,
uint64_t  version,
int  commandRetried 
)
inline

Member Function Documentation

template<class K>
K infinispan::hotrod::event::ClientCacheEntryModifiedEvent< K >::getKey ( )
inline

Modified cache entry's key.

Returns
an instance of the key with which a cache entry has been modified in the remote server(s).
template<class K>
uint8_t infinispan::hotrod::event::ClientCacheEntryModifiedEvent< K >::getType ( )
inlinevirtual
template<class K>
uint64_t infinispan::hotrod::event::ClientCacheEntryModifiedEvent< K >::getVersion ( )
inline

Provides access to the version of the modified cache entry. This version can be used to invoke conditional operations on the server, such as org.infinispan.client.hotrod.RemoteCache#replaceWithVersion(Object, Object, long) or org.infinispan.client.hotrod.RemoteCache#removeWithVersion(Object, long)

Returns
a long containing the version of the modified cache entry.
template<class K>
bool infinispan::hotrod::event::ClientCacheEntryModifiedEvent< K >::isCommandRetried ( )
inline

This will be true if the write command that caused this had to be retried again due to a topology change. This could be a sign that this event has been duplicated or another event was dropped and replaced (eg: ModifiedEvent replaced CreateEvent)

Returns
Whether the command that caused this event was retried

The documentation for this class was generated from the following file: