Class RedisCursorManager

  • All Implemented Interfaces:
    org.zalando.fahrschein.CursorManager

    public class RedisCursorManager
    extends Object
    implements org.zalando.fahrschein.CursorManager
    • Constructor Detail

      • RedisCursorManager

        public RedisCursorManager​(org.springframework.data.redis.connection.jedis.JedisConnectionFactory jedisConnectionFactory,
                                  String consumerName)
    • Method Detail

      • onSuccess

        public void onSuccess​(String eventName,
                              org.zalando.fahrschein.domain.Cursor cursor)
                       throws IOException
        Specified by:
        onSuccess in interface org.zalando.fahrschein.CursorManager
        Throws:
        IOException
      • onSuccess

        public void onSuccess​(String eventName,
                              List<org.zalando.fahrschein.domain.Cursor> cursors)
                       throws IOException
        Specified by:
        onSuccess in interface org.zalando.fahrschein.CursorManager
        Throws:
        IOException
      • getCursors

        public Collection<org.zalando.fahrschein.domain.Cursor> getCursors​(String eventName)
                                                                    throws IOException
        Specified by:
        getCursors in interface org.zalando.fahrschein.CursorManager
        Throws:
        IOException