Class C8StreamImpl

    • Method Detail

      • getStatistics

        public C8StreamStatisticsEntity getStatistics​(boolean isLocal)
        Description copied from interface: C8Stream
        Get the statistics for the given stream.
        Specified by:
        getStatistics in interface C8Stream
        Parameters:
        isLocal - Operate on a local stream instead of a global one. Default value: false
        Returns:
      • terminate

        public void terminate​(boolean isLocal)
        Description copied from interface: C8Stream
        Terminate a stream. A stream that is terminated will not accept any more messages to be published and will let consumer to drain existing messages in backlog.
        Specified by:
        terminate in interface C8Stream
        Parameters:
        isLocal - Operate on a local stream instead of a global one. Default value: false
      • getSubscriptions

        public Collection<String> getSubscriptions​(boolean isLocal)
        Description copied from interface: C8Stream
        Get the list of persistent subscriptions for a given stream.
        Specified by:
        getSubscriptions in interface C8Stream
        Parameters:
        isLocal - Operate on a local stream instead of a global one. Default value: false
        Returns:
      • skipMessages

        public void skipMessages​(String subscriptionName,
                                 int numberOfMessages,
                                 boolean isLocal)
        Description copied from interface: C8Stream
        Skip num messages on a topic subscription.
        Specified by:
        skipMessages in interface C8Stream
        Parameters:
        subscriptionName - Identification name of the subscription.
        numberOfMessages - Number of messages to skip.
        isLocal - Operate on a local stream instead of a global one.
      • skipAllMessages

        public void skipAllMessages​(String subscriptionName,
                                    boolean isLocal)
        Description copied from interface: C8Stream
        Skip all messages on a stream subscription.
        Specified by:
        skipAllMessages in interface C8Stream
        Parameters:
        subscriptionName - Identification name of the subscription.
        isLocal - Operate on a local stream instead of a global one.
      • resetCursorToTimestamp

        public void resetCursorToTimestamp​(String subscriptionName,
                                           int timestamp,
                                           boolean isLocal)
        Description copied from interface: C8Stream
        Reset subscription to message position closest to absolute timestamp (in miliseconds).
        Specified by:
        resetCursorToTimestamp in interface C8Stream
        Parameters:
        subscriptionName - Identification name of the subscription.
        timestamp - Timestamp in miliseconds.
        isLocal - Operate on a local stream instead of a global one.
      • resetCursor

        public void resetCursor​(String subscriptionName,
                                boolean isLocal)
        Description copied from interface: C8Stream
        Disconnect all active consumers for a cursor and reset the cursor.
        Specified by:
        resetCursor in interface C8Stream
        Parameters:
        subscriptionName - Identification name of the subscription.
        isLocal - Operate on a local stream instead of a global one.
      • expireMessagesInSeconds

        public void expireMessagesInSeconds​(String subscriptionName,
                                            int expireTimeInSeconds,
                                            boolean isLocal)
        Description copied from interface: C8Stream
        Expire messages on a stream subscription.
        Specified by:
        expireMessagesInSeconds in interface C8Stream
        Parameters:
        subscriptionName - Identification name of the subscription.
        expireTimeInSeconds - Expiration time in seconds.
        isLocal - Operate on a local stream instead of a global one.
      • deleteSubscription

        public void deleteSubscription​(String subscriptionName,
                                       boolean isLocal)
        Description copied from interface: C8Stream
        Delete a subscription.
        Specified by:
        deleteSubscription in interface C8Stream
        Parameters:
        subscriptionName - Identification name of the subscription.
        isLocal - Operate on a local stream instead of a global one.