Package org.eclipse.keyple.plugin.stub
Class StubPoolPluginFactoryBuilder.Builder
- java.lang.Object
-
- org.eclipse.keyple.plugin.stub.StubPoolPluginFactoryBuilder.Builder
-
- Enclosing class:
- StubPoolPluginFactoryBuilder
public static class StubPoolPluginFactoryBuilder.Builder extends java.lang.Object
Builder to build aStubPoolPluginFactory
.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StubPoolPluginFactory
build()
Returns an instance of StubPoolPluginFactory created from the fields set on this builder.StubPoolPluginFactoryBuilder.Builder
withMonitoringCycleDuration(int duration)
Configure the sleep time between two cycles for card and reader monitoringStubPoolPluginFactoryBuilder.Builder
withStubReader(java.lang.String groupReference, java.lang.String name, StubSmartCard card)
Initialize the plugin with a stub reader.
-
-
-
Method Detail
-
withStubReader
public StubPoolPluginFactoryBuilder.Builder withStubReader(java.lang.String groupReference, java.lang.String name, StubSmartCard card)
Initialize the plugin with a stub reader. Multiple readers can be added. The reader can contain a smart card. Readers name should be unique.- Parameters:
groupReference
- Reader group reference.name
- name for the initially inserted reader (not nullable and unique)card
- (optional) inserted smart card- Returns:
- instance of the builder
- Since:
- 2.0.0
-
withMonitoringCycleDuration
public StubPoolPluginFactoryBuilder.Builder withMonitoringCycleDuration(int duration)
Configure the sleep time between two cycles for card and reader monitoring- Parameters:
duration
- in milliseconds, default value : 0- Returns:
- instance of the builder
- Since:
- 2.0.0
-
build
public StubPoolPluginFactory build()
Returns an instance of StubPoolPluginFactory created from the fields set on this builder.- Returns:
- A
StubPoolPluginFactory
- Since:
- 2.0.0
-
-