Infinispan HotRod C++ Client 9.2.0.Final
Loading...
Searching...
No Matches
Public Member Functions | List of all members
infinispan::hotrod::event::ClientCacheEntryCreatedEvent< K > Class Template Reference

#include <ClientEvent.h>

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

Public Member Functions

 ClientCacheEntryCreatedEvent (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 uint8_t getType ()=0
 
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

◆ ClientCacheEntryCreatedEvent()

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

Member Function Documentation

◆ getKey()

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

Get the key of the created entry

Returns
the key

◆ getType()

template<class K >
uint8_t infinispan::hotrod::event::ClientCacheEntryCreatedEvent< K >::getType ( )
inlinevirtual

◆ getVersion()

template<class K >
uint64_t infinispan::hotrod::event::ClientCacheEntryCreatedEvent< K >::getVersion ( )
inline

Get the version of the created entry

Returns
a long containing the version of the created cache entry.

◆ isCommandRetried()

template<class K >
bool infinispan::hotrod::event::ClientCacheEntryCreatedEvent< 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: