public interface PositionInitializer
extends org.apache.shardingsphere.spi.typed.TypedSPI, org.apache.shardingsphere.spi.singleton.SingletonSPI
| Modifier and Type | Method and Description |
|---|---|
default void |
destroy(DataSource dataSource)
Clean up by data source if necessary.
|
IngestPosition<?> |
init(DataSource dataSource)
Init position by data source.
|
IngestPosition<?> |
init(String data)
Init position by string data.
|
IngestPosition<?> init(DataSource dataSource) throws SQLException
dataSource - data sourceSQLException - SQL exceptionIngestPosition<?> init(String data)
data - string datadefault void destroy(DataSource dataSource) throws SQLException
dataSource - data sourceSQLException - SQL exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.