Package org.eclipse.keyple.distributed
Interface LocalServiceClientFactoryBuilder.NodeStep
-
- Enclosing class:
- LocalServiceClientFactoryBuilder
public static interface LocalServiceClientFactoryBuilder.NodeStep
Step 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 LocalServiceClientFactoryBuilder.BuilderStep
withAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointClientSpi endpoint, int timeoutSeconds)
Configures the service with aAsyncNodeClient
node.LocalServiceClientFactoryBuilder.BuilderStep
withSyncNode(org.eclipse.keyple.distributed.spi.SyncEndpointClientSpi endpoint)
Configures the service with aSyncNodeClient
node.
-
-
-
Method Detail
-
withSyncNode
LocalServiceClientFactoryBuilder.BuilderStep withSyncNode(org.eclipse.keyple.distributed.spi.SyncEndpointClientSpi endpoint)
Configures the service with aSyncNodeClient
node.- Parameters:
endpoint
- TheSyncEndpointClientSpi
network endpoint to use.- Returns:
- Next configuration step.
- Throws:
java.lang.IllegalArgumentException
- If the provided endpoint is null.- Since:
- 2.0.0
-
withAsyncNode
LocalServiceClientFactoryBuilder.BuilderStep withAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointClientSpi endpoint, int timeoutSeconds)
Configures the service with aAsyncNodeClient
node.A new network channel is opened for each remote service execution.
- Parameters:
endpoint
- TheAsyncEndpointClientSpi
network endpoint to use.timeoutSeconds
- This timeout (in seconds) defines how long the async client waits for a server order 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
-
-