Interface CursorManager

  • All Known Implementing Classes:
    ManagedCursorManager

    public interface CursorManager
    Manages cursor offsets for one consumer. One consumer can handle several distinct events.
    • Method Detail

      • onSuccess

        void onSuccess​(java.lang.String eventName,
                       Cursor cursor)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • onSuccess

        void onSuccess​(java.lang.String eventName,
                       java.util.List<Cursor> cursors)
                throws java.io.IOException
        Throws:
        java.io.IOException
      • getCursors

        java.util.Collection<Cursor> getCursors​(java.lang.String eventName)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • addSubscription

        default void addSubscription​(Subscription subscription)
      • addStreamId

        default void addStreamId​(Subscription subscription,
                                 java.lang.String streamId)