Class ExtensionSetTimeoutInMsActionBuilder

java.lang.Object
com.commercetools.api.models.extension.ExtensionSetTimeoutInMsActionBuilder
All Implemented Interfaces:
Builder<ExtensionSetTimeoutInMsAction>

public class ExtensionSetTimeoutInMsActionBuilder extends Object implements Builder<ExtensionSetTimeoutInMsAction>
ExtensionSetTimeoutInMsActionBuilder
Example to create an instance using the builder pattern

     ExtensionSetTimeoutInMsAction extensionSetTimeoutInMsAction = ExtensionSetTimeoutInMsAction.builder()
             .build()
 
  • Constructor Details

    • ExtensionSetTimeoutInMsActionBuilder

      public ExtensionSetTimeoutInMsActionBuilder()
  • Method Details

    • timeoutInMs

      public ExtensionSetTimeoutInMsActionBuilder timeoutInMs(@Nullable Integer timeoutInMs)

      Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

      This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

      Parameters:
      timeoutInMs - value to be set
      Returns:
      Builder
    • getTimeoutInMs

      @Nullable public Integer getTimeoutInMs()

      Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

      This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

      Returns:
      timeoutInMs
    • build

      builds ExtensionSetTimeoutInMsAction with checking for non-null required values
      Specified by:
      build in interface Builder<ExtensionSetTimeoutInMsAction>
      Returns:
      ExtensionSetTimeoutInMsAction
    • buildUnchecked

      public ExtensionSetTimeoutInMsAction buildUnchecked()
      builds ExtensionSetTimeoutInMsAction without checking for non-null required values
      Returns:
      ExtensionSetTimeoutInMsAction
    • of

      factory method for an instance of ExtensionSetTimeoutInMsActionBuilder
      Returns:
      builder
    • of

      create builder for ExtensionSetTimeoutInMsAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder