Package org.zalando.fahrschein.redis
Class RedisCursorManager
- java.lang.Object
-
- org.zalando.fahrschein.redis.RedisCursorManager
-
- All Implemented Interfaces:
org.zalando.fahrschein.CursorManager
public class RedisCursorManager extends Object implements org.zalando.fahrschein.CursorManager
-
-
Constructor Summary
Constructors Constructor Description RedisCursorManager(org.springframework.data.redis.connection.jedis.JedisConnectionFactory jedisConnectionFactory, String consumerName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.zalando.fahrschein.domain.Cursor>getCursors(String eventName)voidonSuccess(String eventName, List<org.zalando.fahrschein.domain.Cursor> cursors)voidonSuccess(String eventName, org.zalando.fahrschein.domain.Cursor cursor)
-
-
-
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:
onSuccessin interfaceorg.zalando.fahrschein.CursorManager- Throws:
IOException
-
onSuccess
public void onSuccess(String eventName, List<org.zalando.fahrschein.domain.Cursor> cursors) throws IOException
- Specified by:
onSuccessin interfaceorg.zalando.fahrschein.CursorManager- Throws:
IOException
-
getCursors
public Collection<org.zalando.fahrschein.domain.Cursor> getCursors(String eventName) throws IOException
- Specified by:
getCursorsin interfaceorg.zalando.fahrschein.CursorManager- Throws:
IOException
-
-