提交 e7cd9e7c 编写于 作者: T tristaZero

add interface

上级 631ad663
......@@ -17,6 +17,8 @@
package io.shardingsphere.core.keygen;
import java.util.Properties;
/**
* Key generator interface.
*
......@@ -31,4 +33,18 @@ public interface KeyGenerator {
* @return generated key
*/
Comparable<?> generateKey();
/**
* Get properties.
*
* @return The properties of key generator
*/
Properties getProperties();
/**
* Set Properties.
*
* @param props props
*/
void setProperties(Properties props);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册