All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.client.CQEventArg Maven / Gradle / Ivy

package com.alachisoft.ncache.client;

import com.alachisoft.ncache.runtime.events.EventType;

/**
 * This object is received when an even is raised and listener {@link QueryDataModificationListener} is executed
 * CQEventArg contains necessary information to identify the event and perform necessary actions accordingly.
 * It inherits {@link EventArg}.
 */
public class CQEventArg extends EventArg {
        private ContinuousQuery _query;


    /**
     * @hidden
     * @param cacheName
     * @param eventType
     * @param item
     * @param oldItem
     */
    public CQEventArg(String cacheName, EventType eventType, EventCacheItem item, EventCacheItem oldItem) {
        super(cacheName, eventType, item, oldItem);
    }


    /**
     * Reference to the {@link ContinuousQuery} object it is registered against
     * @return The ContinuousQuery instance.
     */
    public final ContinuousQuery getContinuousQuery() {
        return _query;
    }

    /**
     * @hidden
     * @param value
     */
    public final void setContinuousQuery(ContinuousQuery value) {
        _query = value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy