org.jboss.jca.adapters.jdbc.spi

## Interface URLSelectorStrategy

- All Known Implementing Classes:
    URLSelector

      public interface URLSelectorStrategy

  URLSelectorStrategy
  Author:
    Jesper Pedersen

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `active()` Get the active URL
    `void` | `fail(java.lang.String url)` Fail an URL - e.g. mark it as bad
    `java.lang.String` | `getData()` Get the data for an error presentation
    `boolean` | `hasMore()` Does the plugin has more valid URLs ?
    `void` | `init(java.util.List<java.lang.String> urls)` Init the plugin with the URLs
    `void` | `reset()` Reset the plugin
    `default void` | `success(java.lang.String url)` URL was accepted - potentially mark it as active

- - ### Method Detail

    - #### init

          void init(java.util.List<java.lang.String> urls)

      Init the plugin with the URLs
      Parameters:
        `urls` - The URLs

    - #### hasMore

          boolean hasMore()

      Does the plugin has more valid URLs ?
      Returns:
        True, if more are available, otherwise false

    - #### active

          java.lang.String active()

      Get the active URL
      Returns:
        The value

    - #### fail

          void fail(java.lang.String url)

      Fail an URL - e.g. mark it as bad
      Parameters:
        `url` - The URL

    - #### success

          default void success(java.lang.String url)

      URL was accepted - potentially mark it as active
      Parameters:
        `url` -

    - #### reset

          void reset()

      Reset the plugin

    - #### getData

          java.lang.String getData()

      Get the data for an error presentation
      Returns:
        The value

Copyright © 2014 IronJacamar (http://www.ironjacamar.org)