Class OutboundSyncStateBuilder

    • Method Detail

      • initialOutboundSyncState

        public static OutboundSyncStateBuilder initialOutboundSyncState()
        Creates initial outbound sync job state builder instance.
        Returns:
        new builder instance, which is initialized with the provided total number of items to be processed by the job and job start date, which is set to the current time.
      • from

        public static OutboundSyncStateBuilder from​(@NotNull
                                                    @NotNull OutboundSyncState initialState)
        Creates a new instance of this builder by initializing its state to the provided outbound sync state. Modifiable attributes can be then changed in the builder, but those attributes that never change will be carried over into the states created by this this builder.
        Parameters:
        initialState - another state to initialize this builder to
        Returns:
        a new builder instance initialized to the provided state