Class ThreadPatch.Builder

java.lang.Object
io.skipcheck.tm1.client.model.ThreadPatch.Builder
Enclosing class:
ThreadPatch

public static final class ThreadPatch.Builder extends Object
Builds a ThreadPatch; each setter replaces what an earlier call set.
  • Method Details

    • id

      @Since("10.2.2.5") public ThreadPatch.Builder id(@Nullable Long id)
      Sets ID: The ID of the thread.
      Parameters:
      id - the value; null sends an explicit null
      Returns:
      this builder
    • type

      public ThreadPatch.Builder type(@Nullable ThreadType type)
      Sets Type: The type of thread, that is, user, worker, chore, system.
      Parameters:
      type - the value; null sends an explicit null
      Returns:
      this builder
    • name

      public ThreadPatch.Builder name(@Nullable String name)
      Sets Name: The name of the thread.
      Parameters:
      name - the value; null sends an explicit null
      Returns:
      this builder
    • context

      public ThreadPatch.Builder context(@Nullable String context)
      Sets Context: The context of the thread.
      Parameters:
      context - the value; null sends an explicit null
      Returns:
      this builder
    • state

      public ThreadPatch.Builder state(@Nullable String state)
      Sets State: The state of the thread.
      Parameters:
      state - the value; null sends an explicit null
      Returns:
      this builder
    • function

      public ThreadPatch.Builder function(@Nullable String function)
      Sets Function: The function of the thread.
      Parameters:
      function - the value; null sends an explicit null
      Returns:
      this builder
    • objectType

      public ThreadPatch.Builder objectType(@Nullable String objectType)
      Sets ObjectType: The object type of the thread.
      Parameters:
      objectType - the value; null sends an explicit null
      Returns:
      this builder
    • objectName

      public ThreadPatch.Builder objectName(@Nullable String objectName)
      Sets ObjectName: The name of the object that the thread acts on.
      Parameters:
      objectName - the value; null sends an explicit null
      Returns:
      this builder
    • rLocks

      public ThreadPatch.Builder rLocks(@Nullable Integer rLocks)
      Sets RLocks: A shared lock that allows many threads to read from an object at the same time, but does not allow another thread to modify or write to this object until all R-locks have been released.
      Parameters:
      rLocks - the value; null sends an explicit null
      Returns:
      this builder
    • ixLocks

      public ThreadPatch.Builder ixLocks(@Nullable Integer ixLocks)
      Sets IXLocks: A lock that reserves the right for a thread to obtain a W-lock on an object when all R-locks have been released.
      Parameters:
      ixLocks - the value; null sends an explicit null
      Returns:
      this builder
    • wLocks

      public ThreadPatch.Builder wLocks(@Nullable Integer wLocks)
      Sets WLocks: An exclusive lock that allows only one thread at a time to access and write changes to an object.
      Parameters:
      wLocks - the value; null sends an explicit null
      Returns:
      this builder
    • elapsedTime

      public ThreadPatch.Builder elapsedTime(@Nullable Duration elapsedTime)
      Sets ElapsedTime: The elapsed time of a thread in seconds.
      Parameters:
      elapsedTime - the value; null sends an explicit null
      Returns:
      this builder
    • waitTime

      public ThreadPatch.Builder waitTime(@Nullable Duration waitTime)
      Sets WaitTime: The wait time (delay) before a thread should start the process.
      Parameters:
      waitTime - the value; null sends an explicit null
      Returns:
      this builder
    • info

      public ThreadPatch.Builder info(@Nullable String info)
      Sets Info: The info of the thread.
      Parameters:
      info - the value; null sends an explicit null
      Returns:
      this builder
    • session

      public ThreadPatch.Builder session(@Nullable SessionPatch session)
      Sets Session: The Session that this thread is currently servicing. (nested, for a deep insert)
      Parameters:
      session - the value; null sends an explicit null
      Returns:
      this builder
    • bindSession

      public ThreadPatch.Builder bindSession(ODataPath target)
      Binds Session to an existing entity (Session@odata.bind).
      Parameters:
      target - the entity's path
      Returns:
      this builder
    • build

      public ThreadPatch build()
      The patch, with what's been set so far.
      Returns:
      the patch