Interface DataSourceSelector
-
- All Known Implementing Classes:
NamedDataSourceSelector,RandomDataSourceSelector,StickyRandomDataSourceSelector
public interface DataSourceSelectorInterface for those selector to implement. e.g. Random and Named- Author:
- DigitalSonic
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroy()Destroy the DataSourceSelector, maybe interrupt the Thread.DataSourceget()Return a DataSource according to the implemention.StringgetName()Return the name of this DataSourceSelector.voidinit()Init the DataSourceSelector before use it.voidsetTarget(String name)Set the target DataSource name to return.
-
-
-
Method Detail
-
get
DataSource get()
Return a DataSource according to the implemention.
-
setTarget
void setTarget(String name)
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.
-
-