The CqEvent is passed to the CQs CqListener methods. It can be used to retrieve such information as the region operation, CQ operation associated with the event, the new key and value from the event, and the CqQuery object associated with the event. The CqEvent is not an extension of CacheEvent.
Public Member Functions | |
| virtual CqOperation::CqOperationType | getBaseOperation () const =0 |
| Get the operation on the base region that triggered this event. | |
| virtual CqQueryPtr | getCq () const =0 |
| Get the CqQuery object of this event. | |
| virtual CacheableBytesPtr | getDeltaValue () const =0 |
| Get the delta modification. | |
| virtual CacheableKeyPtr | getKey () const =0 |
| Get the key relating to the event. | |
| virtual CacheablePtr | getNewValue () const =0 |
| Get the new value of the modification. | |
| virtual CqOperation::CqOperationType | getQueryOperation () const =0 |
| Get the operation on the query results. | |
| virtual CqOperation::CqOperationType gemfire::CqEvent::getBaseOperation | ( | ) | const [pure virtual] |
Get the operation on the base region that triggered this event.
| virtual CqQueryPtr gemfire::CqEvent::getCq | ( | ) | const [pure virtual] |
| virtual CacheableBytesPtr gemfire::CqEvent::getDeltaValue | ( | ) | const [pure virtual] |
Get the delta modification.
If there is no delta, returns null. New value may still be available.
| virtual CacheableKeyPtr gemfire::CqEvent::getKey | ( | ) | const [pure virtual] |
Get the key relating to the event.
In case of REGION_CLEAR and REGION_INVALIDATE operation, the key will be NULLPTR.
| virtual CacheablePtr gemfire::CqEvent::getNewValue | ( | ) | const [pure virtual] |
Get the new value of the modification.
If there is no new value returns NULLPTR, this will happen during delete operation.
| virtual CqOperation::CqOperationType gemfire::CqEvent::getQueryOperation | ( | ) | const [pure virtual] |
Get the operation on the query results.
Supported operations include update, create, destroy, region clear and region invalidate.