use of org.apache.geode.cache.query.CqEvent in project geode by apache.
the class HelperTestCase method createDummyCqAttributes.
private CqAttributes createDummyCqAttributes() {
// Create CQ Attributes.
CqAttributesFactory cqAf = new CqAttributesFactory();
// Initialize and set CqListener.
CqListener[] cqListeners = { new CqListener() {
@Override
public void close() {
}
@Override
public void onEvent(CqEvent aCqEvent) {
}
@Override
public void onError(CqEvent aCqEvent) {
}
} };
cqAf.initCqListeners(cqListeners);
CqAttributes cqa = cqAf.create();
return cqa;
}
Aggregations