Package org.eclipse.keyple.distributed
Interface RemotePluginClientFactoryBuilder.NodeStep
-
- Enclosing class:
- RemotePluginClientFactoryBuilder
public static interface RemotePluginClientFactoryBuilder.NodeStepStep to configure the node associated with the service.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RemotePluginClientFactoryBuilder.BuilderStepwithAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointClientSpi endpoint, int timeoutSeconds)Configures the service with aAsyncNodeClientnode.RemotePluginClientFactoryBuilder.SyncNodePluginStepwithSyncNode(org.eclipse.keyple.distributed.spi.SyncEndpointClientSpi endpoint)Configures the service with aSyncNodeClientnode.
-
-
-
Method Detail
-
withSyncNode
RemotePluginClientFactoryBuilder.SyncNodePluginStep withSyncNode(org.eclipse.keyple.distributed.spi.SyncEndpointClientSpi endpoint)
Configures the service with aSyncNodeClientnode.- Parameters:
endpoint- TheSyncEndpointClientSpinetwork endpoint to use.- Returns:
- Next configuration step.
- Throws:
java.lang.IllegalArgumentException- If the provided endpoint is null.- Since:
- 2.0.0
-
withAsyncNode
RemotePluginClientFactoryBuilder.BuilderStep withAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointClientSpi endpoint, int timeoutSeconds)
Configures the service with aAsyncNodeClientnode.The network channel is opened once and must remain open for the entire lifecycle of the plugin until it is unregistered.
- Parameters:
endpoint- TheAsyncEndpointClientSpinetwork endpoint to use.timeoutSeconds- This timeout (in seconds) defines how long the async client waits for a server response before cancelling the global transaction.- Returns:
- Next configuration step.
- Throws:
java.lang.IllegalArgumentException- If the endpoint is null or the timeout<1.- Since:
- 2.0.0
-
-