public class PersistentCursorManager extends Object implements CursorManager
| Constructor and Description |
|---|
PersistentCursorManager(DataSource dataSource) |
PersistentCursorManager(org.springframework.jdbc.core.JdbcTemplate template) |
| Modifier and Type | Method and Description |
|---|---|
Collection<Cursor> |
getCursors(String eventName) |
void |
onError(String eventName,
Cursor cursor,
Throwable throwable) |
void |
onSuccess(String eventName,
Cursor cursor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddSubscription, fromNewestAvailableOffsets, fromOldestAvailableOffset, updatePartitionspublic PersistentCursorManager(org.springframework.jdbc.core.JdbcTemplate template)
throws IOException
IOExceptionpublic PersistentCursorManager(DataSource dataSource) throws IOException
IOExceptionpublic void onSuccess(String eventName, Cursor cursor) throws IOException
onSuccess in interface CursorManagerIOExceptionpublic void onError(String eventName, Cursor cursor, Throwable throwable)
onError in interface CursorManagerpublic Collection<Cursor> getCursors(String eventName) throws IOException
getCursors in interface CursorManagerIOExceptionCopyright © 2016 Zalando SE. All rights reserved.