Package org.jboss.jca.adapters.jdbc.spi
Interface URLSelectorStrategy
-
- All Known Implementing Classes:
URLSelector
public interface URLSelectorStrategyURLSelectorStrategy- Author:
- Jesper Pedersen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Stringactive()Get the active URLvoidfail(String url)Fail an URL - e.g.StringgetData()Get the data for an error presentationbooleanhasMore()Does the plugin has more valid URLs ?voidinit(List<String> urls)Init the plugin with the URLsvoidreset()Reset the plugindefault voidsuccess(String url)URL was accepted - potentially mark it as active
-
-
-
Method Detail
-
hasMore
boolean hasMore()
Does the plugin has more valid URLs ?- Returns:
- True, if more are available, otherwise false
-
active
String active()
Get the active URL- Returns:
- The value
-
fail
void fail(String url)
Fail an URL - e.g. mark it as bad- Parameters:
url- The URL
-
success
default void success(String url)
URL was accepted - potentially mark it as active- Parameters:
url-
-
reset
void reset()
Reset the plugin
-
getData
String getData()
Get the data for an error presentation- Returns:
- The value
-
-