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 Details

    • withSyncNode

      Configures the service with a SyncNodeServer node.

      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

      RemotePluginServerFactoryBuilder.BuilderStep withSyncNode(int timeoutSeconds)
      Configures the service with a SyncNodeServer node 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 a AsyncNodeServer node.

      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 - The AsyncEndpointServerSpi network 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 a AsyncNodeServer node configured with the specified awaiting timeout.
      Parameters:
      endpoint - The AsyncEndpointServerSpi network 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: