This interface is used to modify the listeners that are associated with a CQ.
More...
Inherits apache::geode::client::SharedBase.
This interface is used to modify the listeners that are associated with a CQ.
Each CqQuery has an CqAttributesMutator interface which supports modification of certain CQ attributes after the CQ has been created.
virtual void apache::geode::client::CqAttributesMutator::addCqListener |
( |
const CqListenerPtr & |
aListener | ) |
|
|
pure virtual |
Adds a CQ listener to the end of the list of CQ listeners on this CqQuery.
- Parameters
-
aListener | the user defined CQ listener to add to the CqQuery. |
- Exceptions
-
IllegalArgumentException | if aListener is NULLPTR |
void apache::geode::client::SharedBase::preserveSB |
( |
| ) |
const |
|
inherited |
Atomically increment reference count.
int32_t apache::geode::client::SharedBase::refCount |
( |
| ) |
|
|
inlineinherited |
- Returns
- the reference count
void apache::geode::client::SharedBase::releaseSB |
( |
| ) |
const |
|
inherited |
Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
virtual void apache::geode::client::CqAttributesMutator::removeCqListener |
( |
const CqListenerPtr & |
aListener | ) |
|
|
pure virtual |
Removes given CQ listener from the list of CQ listeners on this CqQuery.
Does nothing if the specified listener has not been added. If the specified listener has been added then will be called on it; otherwise does nothing.
- Parameters
-
aListener | the CQ listener to remove from the CqQuery. |
- Exceptions
-
IllegalArgumentException | if aListener is NULLPTR |
virtual void apache::geode::client::CqAttributesMutator::setCqListeners |
( |
VectorOfCqListener & |
newListeners | ) |
|
|
pure virtual |
Adds the given set CqListner on this CQ.
If the CQ already has CqListeners, this removes those old CQs and initializes with the newListeners.
- Parameters
-
newListeners | a possibly empty array of listeners to add to this CqQuery. |
- Exceptions
-
IllegalArgumentException | if the newListeners array has a NULLPTR element |