接口 DataSourceSelector
public interface DataSourceSelector
Interface for those selector to implement.
e.g. Random and Named
- 作者:
- DigitalSonic
-
方法概要
修饰符和类型方法说明voiddestroy()Destroy the DataSourceSelector, maybe interrupt the Thread.get()Return a DataSource according to the implemention.getName()Return the name of this DataSourceSelector.voidinit()Init the DataSourceSelector before use it.voidSet the target DataSource name to return.
-
方法详细资料
-
get
DataSource get()Return a DataSource according to the implemention. -
setTarget
Set the target DataSource name to return. Wether to use this or not, it's decided by the implemention. -
getName
String getName()Return the name of this DataSourceSelector. e.g. byName -
init
void init()Init the DataSourceSelector before use it. -
destroy
void destroy()Destroy the DataSourceSelector, maybe interrupt the Thread.
-