Search in sources :

Example 11 with CqEvent

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;
}
Also used : CqEvent(org.apache.geode.cache.query.CqEvent) CqAttributes(org.apache.geode.cache.query.CqAttributes) CqListener(org.apache.geode.cache.query.CqListener) CqAttributesFactory(org.apache.geode.cache.query.CqAttributesFactory)

Aggregations

CqAttributesFactory (org.apache.geode.cache.query.CqAttributesFactory)11 CqEvent (org.apache.geode.cache.query.CqEvent)11 CqQuery (org.apache.geode.cache.query.CqQuery)10 CqAttributes (org.apache.geode.cache.query.CqAttributes)8 QueryService (org.apache.geode.cache.query.QueryService)6 DistributedTest (org.apache.geode.test.junit.categories.DistributedTest)6 Test (org.junit.Test)6 CqListenerAdapter (org.apache.geode.cache.util.CqListenerAdapter)5 Region (org.apache.geode.cache.Region)4 CqListener (org.apache.geode.cache.query.CqListener)4 ClientCache (org.apache.geode.cache.client.ClientCache)3 Pool (org.apache.geode.cache.client.Pool)3 SecurityTestUtil.createClientCache (org.apache.geode.security.SecurityTestUtil.createClientCache)3 SecurityTestUtil.createProxyRegion (org.apache.geode.security.SecurityTestUtil.createProxyRegion)3 SecurityTest (org.apache.geode.test.junit.categories.SecurityTest)3 MyObject (com.examples.snapshot.MyObject)2 File (java.io.File)2 Properties (java.util.Properties)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 AttributesFactory (org.apache.geode.cache.AttributesFactory)2