Package org.eclipse.keyple.distributed
Interface RemotePluginServerFactoryBuilder.NodeStep
- Enclosing class:
- RemotePluginServerFactoryBuilder
public static interface RemotePluginServerFactoryBuilder.NodeStep
Step to configure the node associated with the service.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionwithAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointServerSpi endpoint) Configures the service with aAsyncNodeServernode.withAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointServerSpi endpoint, int timeoutSeconds) Configures the service with aAsyncNodeServernode configured with the specified awaiting timeout.Configures the service with aSyncNodeServernode.withSyncNode(int timeoutSeconds) Configures the service with aSyncNodeServernode configured with the specified awaiting timeout.
-
Method Details
-
withSyncNode
RemotePluginServerFactoryBuilder.BuilderStep withSyncNode()Configures the service with aSyncNodeServernode.Note that the default awaiting timeout is 20 seconds. The timeout defines the maximum time the client can wait for the server's response, as well as the maximum time the server can wait between two client calls.
- Returns:
- Next configuration step.
- Since:
- 2.0.0
- See Also:
-
withSyncNode
Configures the service with aSyncNodeServernode configured with the specified awaiting timeout.- Parameters:
timeoutSeconds- The timeout (in seconds) defines the maximum time the client can wait for the server's response, as well as the maximum time the server can wait between two client calls.- Returns:
- Next configuration step.
- Throws:
IllegalArgumentException- If the timeout has a negative value.- Since:
- 2.4.0
- See Also:
-
withAsyncNode
RemotePluginServerFactoryBuilder.BuilderStep withAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointServerSpi endpoint) Configures the service with aAsyncNodeServernode.Note that the default awaiting timeout is 20 seconds. The timeout defines the maximum time the client can wait for the server's response, as well as the maximum time the server can wait between two client calls.
- Parameters:
endpoint- TheAsyncEndpointServerSpinetwork endpoint to use.- Returns:
- Next configuration step.
- Throws:
IllegalArgumentException- If the endpoint is null.- Since:
- 2.0.0
- See Also:
-
withAsyncNode
RemotePluginServerFactoryBuilder.BuilderStep withAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointServerSpi endpoint, int timeoutSeconds) Configures the service with aAsyncNodeServernode configured with the specified awaiting timeout.- Parameters:
endpoint- TheAsyncEndpointServerSpinetwork endpoint to use.timeoutSeconds- The timeout (in seconds) defines the maximum time the client can wait for the server's response, as well as the maximum time the server can wait between two client calls.- Returns:
- Next configuration step.
- Throws:
IllegalArgumentException- If the endpoint is null or if the timeout has a negative value.- Since:
- 2.4.0
- See Also:
-