Interface ObservablePluginSpi
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionint
Gets the recommended time cycle in milliseconds to check the list of current readers.Enumerates currently available readers and returns their names as a collection of String.searchReader
(String readerName) Searches for the reader whose name is provided and returns itsReaderSpi
if found, null if not.Methods inherited from interface org.eclipse.keyple.core.plugin.spi.PluginSpi
getName, onUnregister, searchAvailableReaders
-
Method Details
-
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
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
Searches for the reader whose name is provided and returns itsReaderSpi
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
-