Class ThreadPatch.Builder
java.lang.Object
io.skipcheck.tm1.client.model.ThreadPatch.Builder
- Enclosing class:
ThreadPatch
Builds a
ThreadPatch; each setter replaces what an earlier call set.-
Method Summary
Modifier and TypeMethodDescriptionbindSession(ODataPath target) BindsSessionto an existing entity (Session@odata.bind).build()The patch, with what's been set so far.SetsContext: The context of the thread.elapsedTime(@Nullable Duration elapsedTime) SetsElapsedTime: The elapsed time of a thread in seconds.SetsFunction: The function of the thread.SetsID: The ID of the thread.SetsInfo: The info of the thread.SetsIXLocks: A lock that reserves the right for a thread to obtain a W-lock on an object when all R-locks have been released.SetsName: The name of the thread.objectName(@Nullable String objectName) SetsObjectName: The name of the object that the thread acts on.objectType(@Nullable String objectType) SetsObjectType: The object type of the thread.SetsRLocks: 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.session(@Nullable SessionPatch session) SetsSession: The Session that this thread is currently servicing.SetsState: The state of the thread.type(@Nullable ThreadType type) SetsType: The type of thread, that is, user, worker, chore, system.SetsWaitTime: The wait time (delay) before a thread should start the process.SetsWLocks: An exclusive lock that allows only one thread at a time to access and write changes to an object.
-
Method Details
-
id
SetsID: The ID of the thread.- Parameters:
id- the value;nullsends an explicitnull- Returns:
- this builder
-
type
SetsType: The type of thread, that is, user, worker, chore, system.- Parameters:
type- the value;nullsends an explicitnull- Returns:
- this builder
-
name
SetsName: The name of the thread.- Parameters:
name- the value;nullsends an explicitnull- Returns:
- this builder
-
context
SetsContext: The context of the thread.- Parameters:
context- the value;nullsends an explicitnull- Returns:
- this builder
-
state
SetsState: The state of the thread.- Parameters:
state- the value;nullsends an explicitnull- Returns:
- this builder
-
function
SetsFunction: The function of the thread.- Parameters:
function- the value;nullsends an explicitnull- Returns:
- this builder
-
objectType
SetsObjectType: The object type of the thread.- Parameters:
objectType- the value;nullsends an explicitnull- Returns:
- this builder
-
objectName
SetsObjectName: The name of the object that the thread acts on.- Parameters:
objectName- the value;nullsends an explicitnull- Returns:
- this builder
-
rLocks
SetsRLocks: 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;nullsends an explicitnull- Returns:
- this builder
-
ixLocks
SetsIXLocks: 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;nullsends an explicitnull- Returns:
- this builder
-
wLocks
SetsWLocks: An exclusive lock that allows only one thread at a time to access and write changes to an object.- Parameters:
wLocks- the value;nullsends an explicitnull- Returns:
- this builder
-
elapsedTime
SetsElapsedTime: The elapsed time of a thread in seconds.- Parameters:
elapsedTime- the value;nullsends an explicitnull- Returns:
- this builder
-
waitTime
SetsWaitTime: The wait time (delay) before a thread should start the process.- Parameters:
waitTime- the value;nullsends an explicitnull- Returns:
- this builder
-
info
SetsInfo: The info of the thread.- Parameters:
info- the value;nullsends an explicitnull- Returns:
- this builder
-
session
SetsSession: The Session that this thread is currently servicing. (nested, for a deep insert)- Parameters:
session- the value;nullsends an explicitnull- Returns:
- this builder
-
bindSession
BindsSessionto an existing entity (Session@odata.bind).- Parameters:
target- the entity's path- Returns:
- this builder
-
build
-