Class BuildIdOperation

java.lang.Object
io.temporal.client.BuildIdOperation

@Experimental @Deprecated public abstract class BuildIdOperation extends Object
Deprecated.
The implementations of this class can be passed as parameters to WorkflowClient.updateWorkerBuildIdCompatability(String, BuildIdOperation)

See each public static method to learn about and construct the available operations.

  • Method Details

    • newIdInNewDefaultSet

      public static BuildIdOperation newIdInNewDefaultSet(@Nonnull String buildId)
      Deprecated.
      This operation adds a new Build Id into a new set, which will be used as the default set for the queue. This means all new workflows will start on this Build Id.
      Parameters:
      buildId - The Build Id to add as the new overall default.
    • newCompatibleVersion

      public static BuildIdOperation newCompatibleVersion(@Nonnull String buildId, @Nonnull String existingCompatibleBuildId, boolean makeSetDefault)
      Deprecated.
      This operation adds a new Build Id into an existing compatible set. The newly added ID becomes the default for that compatible set, and thus new workflow tasks for workflows which have been executing on workers in that set will now start on this new Build Id.
      Parameters:
      buildId - The Build Id to add to an existing compatible set.
      existingCompatibleBuildId - A Build Id which must already be defined on the task queue, and is used to find the compatible set to add the new ID to.
      makeSetDefault - If set to true, the targeted set will also be promoted to become the overall default set for the queue.
    • newCompatibleVersion

      public static BuildIdOperation newCompatibleVersion(@Nonnull String buildId, @Nonnull String existingCompatibleBuildId)
      Deprecated.
      Performs newCompatibleVersion(String, String, boolean), with `makeSetDefault` set to false.
    • promoteSetByBuildId

      public static BuildIdOperation promoteSetByBuildId(@Nonnull String buildId)
      Deprecated.
      This operation promotes a set to become the overall default set for the queue.
      Parameters:
      buildId - An existing Build Id which is used to find the set to be promoted.
    • promoteBuildIdWithinSet

      public static BuildIdOperation promoteBuildIdWithinSet(@Nonnull String buildId)
      Deprecated.
      This operation promotes a Build Id inside some compatible set to become the default ID in that set.
      Parameters:
      buildId - An existing Build Id which will be promoted within its compatible set.
    • mergeSets

      public static BuildIdOperation mergeSets(@Nonnull String primaryBuildId, @Nonnull String secondaryBuildId)
      Deprecated.
      This operation merges two sets into one set, thus declaring all the Build Ids in both as compatible with one another. The default of the primary set is maintained as the merged set's overall default.
      Parameters:
      primaryBuildId - A Build Id which is used to find the primary set to be merged.
      secondaryBuildId - A Build Id which is used to find the secondary set to be merged.