Interface RemotePoolPluginClientFactoryBuilder.NodeStep

Enclosing class:
RemotePoolPluginClientFactoryBuilder

public static interface RemotePoolPluginClientFactoryBuilder.NodeStep
Step to configure the node associated with the service.
Since:
2.0.0
  • Method Details

    • withSyncNode

      RemotePoolPluginClientFactoryBuilder.BuilderStep withSyncNode(org.eclipse.keyple.distributed.spi.SyncEndpointClientSpi endpoint)
      Configures the service with a SyncNodeClient node.
      Parameters:
      endpoint - The SyncEndpointClientSpi network endpoint to use.
      Returns:
      Next configuration step.
      Throws:
      IllegalArgumentException - If the provided endpoint is null.
      Since:
      2.0.0
    • withAsyncNode

      RemotePoolPluginClientFactoryBuilder.BuilderStep withAsyncNode(org.eclipse.keyple.distributed.spi.AsyncEndpointClientSpi endpoint, int timeoutSeconds)
      Configures the service with a AsyncNodeClient node.

      The network channel is opened once and must remain open for the entire lifecycle of the plugin until it is unregistered.

      Parameters:
      endpoint - The AsyncEndpointClientSpi 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:
      IllegalArgumentException - If the endpoint is null or the timeout < 1.
      Since:
      2.0.0