Interface CardRemovalWaiterBlockingSpi
-
public interface CardRemovalWaiterBlockingSpiThis SPI is specifically designed for plugins that handle card removal synchronously. The plugin waits autonomously and indefinitely for the removal of a card by implementing a waiting mechanism.A typical example of readers conforming to this mode of operation are PC/SC type readers capable of performing RF polling without waiting for a command from the application.
- Since:
- 2.2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidstopWaitForCardRemoval()Interrupts the waiting of the removal of the cardvoidwaitForCardRemoval()Waits indefinitely for a card to be removed.
-
-
-
Method Detail
-
waitForCardRemoval
void waitForCardRemoval() throws ReaderIOException, TaskCanceledExceptionWaits indefinitely for a card to be removed.This wait can be cancelled for an internal (for example timeout) or external reason (for example invocation of
stopWaitForCardRemoval()), in this case an exception is raised.- Throws:
ReaderIOException- If the communication with the readerTaskCanceledException- If the task has been canceled and is no longer active- Since:
- 2.2.0
-
stopWaitForCardRemoval
void stopWaitForCardRemoval()
Interrupts the waiting of the removal of the card- Since:
- 2.2.0
-
-