public interface PositionInitializer
extends org.apache.shardingsphere.infra.util.spi.type.typed.TypedSPI, org.apache.shardingsphere.infra.util.spi.type.required.RequiredSPI
| 限定符和类型 | 方法和说明 |
|---|---|
default void |
destroy(DataSource dataSource,
String slotNameSuffix)
Clean up by data source if necessary.
|
IngestPosition<?> |
init(DataSource dataSource,
String slotNameSuffix)
Init position by data source.
|
IngestPosition<?> |
init(String data)
Init position by string data.
|
IngestPosition<?> init(DataSource dataSource, String slotNameSuffix) throws SQLException
dataSource - data sourceslotNameSuffix - slot name suffixSQLException - SQL exceptionIngestPosition<?> init(String data)
data - string datadefault void destroy(DataSource dataSource, String slotNameSuffix) throws SQLException
dataSource - data sourceslotNameSuffix - slot name suffixSQLException - SQL exceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.