Interface ObservablePluginSpi

  • All Superinterfaces:
    PluginSpi

    public interface ObservablePluginSpi
    extends PluginSpi
    Plugin (non pool) able to manage a dynamic list of readers and provide the content on request (for example PC/SC).

    The production of plugin events (connection/disconnection of readers) is handled by the Keyple Core adapter.

    Since:
    2.0.0
    • Method Detail

      • getMonitoringCycleDuration

        int getMonitoringCycleDuration()
        Gets the recommended time cycle in milliseconds to check the list of current readers.
        Returns:
        A positive int
        Since:
        2.0.0
      • searchAvailableReaderNames

        java.util.Set<java.lang.String> searchAvailableReaderNames()
                                                            throws PluginIOException
        Enumerates currently available readers and returns their names as a collection of String.
        Returns:
        An empty Set if no reader is available
        Throws:
        PluginIOException - If an error occurs while searching readers.
        Since:
        2.0.0
      • searchReader

        ReaderSpi searchReader​(java.lang.String readerName)
                        throws PluginIOException
        Searches for the reader whose name is provided and returns its ReaderSpi if found, null if not.
        Parameters:
        readerName - The name of reader
        Returns:
        Null if the reader is not found
        Throws:
        PluginIOException - If an error occurs while searching the reader.
        Since:
        2.0.0