Interface GridContinuousHandler

    • Method Detail

      • unregister

        void unregister​(UUID routineId,
                        GridKernalContext ctx)
        Unregisters listener.
        Parameters:
        routineId - Routine ID.
        ctx - Kernal context.
      • notifyCallback

        void notifyCallback​(UUID nodeId,
                            UUID routineId,
                            Collection<?> objs,
                            GridKernalContext ctx)
        Notifies local callback.
        Parameters:
        nodeId - ID of the node where notification came from.
        routineId - Routine ID.
        objs - Notification objects.
        ctx - Kernal context.
      • onClientDisconnected

        void onClientDisconnected()
        Client node disconnected callback.
      • onBatchAcknowledged

        void onBatchAcknowledged​(UUID routineId,
                                 GridContinuousBatch batch,
                                 GridKernalContext ctx)
        Called when ack for a batch is received from client.
        Parameters:
        routineId - Routine ID.
        batch - Acknowledged batch.
        ctx - Kernal context.
      • flushOnNodeLeft

        default void flushOnNodeLeft()
        Node which started routine leave topology.
      • orderedTopic

        @Nullable
        @Nullable Object orderedTopic()
        Returns:
        Topic for ordered notifications. If null, notifications will be sent in non-ordered messages.
      • isEvents

        boolean isEvents()
        Returns:
        True if for events.
      • isMessaging

        boolean isMessaging()
        Returns:
        True if for messaging.
      • isQuery

        boolean isQuery()
        Returns:
        True if for continuous queries.
      • keepBinary

        boolean keepBinary()
        Returns:
        True if Ignite Binary objects should be passed to the listener and filter.
      • cacheName

        String cacheName()
        Returns:
        Cache name if this is a continuous query handler.
      • updateCounters

        Map<Integer,​T2<Long,​Long>> updateCounters()
        Returns:
        Init state for partition counters.