public class JdbcCursorManager extends Object implements CursorManager
| Constructor and Description |
|---|
JdbcCursorManager(DataSource dataSource,
String consumerName) |
JdbcCursorManager(DataSource dataSource,
String consumerName,
String schema) |
JdbcCursorManager(org.springframework.jdbc.core.JdbcTemplate template,
String consumerName) |
JdbcCursorManager(org.springframework.jdbc.core.JdbcTemplate template,
String consumerName,
String schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromNewestAvailableOffsets(String eventName,
List<Partition> partitions) |
void |
fromOldestAvailableOffset(String eventName,
List<Partition> partitions) |
Collection<Cursor> |
getCursors(String eventName) |
void |
onError(String eventName,
Cursor cursor,
Throwable throwable) |
void |
onSuccess(String eventName,
Cursor cursor) |
void |
updatePartitions(String eventName,
List<Partition> partitions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddStreamId, addSubscriptionpublic JdbcCursorManager(org.springframework.jdbc.core.JdbcTemplate template,
String consumerName,
String schema)
public JdbcCursorManager(org.springframework.jdbc.core.JdbcTemplate template,
String consumerName)
public JdbcCursorManager(DataSource dataSource, String consumerName, String schema)
public JdbcCursorManager(DataSource dataSource, String consumerName)
@Transactional public 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 CursorManagerIOException@Transactional public void fromNewestAvailableOffsets(String eventName, List<Partition> partitions) throws IOException
fromNewestAvailableOffsets in interface CursorManagerIOException@Transactional public void fromOldestAvailableOffset(String eventName, List<Partition> partitions) throws IOException
fromOldestAvailableOffset in interface CursorManagerIOException@Transactional public void updatePartitions(String eventName, List<Partition> partitions) throws IOException
updatePartitions in interface CursorManagerIOExceptionCopyright © 2016–2017 Zalando SE. All rights reserved.