Class PlatformContinuousQueryImpl

    • Field Detail

      • filter

        protected final Object filter
        Native filter in serialized form. If null, then filter is either not set, or this is local query.
      • javaFilter

        protected final javax.cache.event.CacheEntryEventFilter javaFilter
        Java filter.
    • Constructor Detail

      • PlatformContinuousQueryImpl

        public PlatformContinuousQueryImpl​(PlatformContext platformCtx,
                                           long ptr,
                                           boolean hasFilter,
                                           Object filter)
        Constructor.
        Parameters:
        platformCtx - Context.
        ptr - Pointer to native counterpart.
        hasFilter - Whether filter exists.
        filter - Filter.
    • Method Detail

      • start

        public void start​(IgniteCacheProxy cache,
                          boolean loc,
                          int bufSize,
                          long timeInterval,
                          boolean autoUnsubscribe,
                          Query initialQry,
                          boolean includeExpired)
                   throws IgniteCheckedException
        Start query execution.
        Specified by:
        start in interface PlatformContinuousQuery
        Parameters:
        cache - Cache.
        loc - Local flag.
        bufSize - Buffer size.
        timeInterval - Time interval.
        autoUnsubscribe - Auto-unsubscribe flag.
        includeExpired - Whether to include expired events.
        initialQry - Initial query.
        Throws:
        IgniteCheckedException - If failed.
      • onUpdated

        public void onUpdated​(Iterable evts)
                       throws javax.cache.event.CacheEntryListenerException
        Specified by:
        onUpdated in interface javax.cache.event.CacheEntryUpdatedListener
        Throws:
        javax.cache.event.CacheEntryListenerException
      • evaluate

        public boolean evaluate​(javax.cache.event.CacheEntryEvent evt)
                         throws javax.cache.event.CacheEntryListenerException
        Specified by:
        evaluate in interface javax.cache.event.CacheEntryEventFilter
        Throws:
        javax.cache.event.CacheEntryListenerException