Record Class Thread
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.model.Thread
- Record Components:
etag- the entity's ETag (@odata.etag), forIf-Matchid- The ID of the thread. (since 10.2.2.5)type- The type of thread, that is, user, worker, chore, system.name- The name of the thread.context- The context of the thread.state- The state of the thread.function- The function of the thread.objectType- The object type of the thread.objectName- The name of the object that the thread acts on.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.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.wLocks- An exclusive lock that allows only one thread at a time to access and write changes to an object.elapsedTime- The elapsed time of a thread in seconds.waitTime- The wait time (delay) before a thread should start the process.info- The info of the thread.session- The Session that this thread is currently servicing. (when expanded)
@Generated("io.skipcheck.tm1.codegen")
@Since("10.2.2.1")
public record Thread(@Nullable String etag, @Since("10.2.2.5") @Nullable Long id, @Nullable ThreadType type, @Nullable String name, @Nullable String context, @Nullable String state, @Nullable String function, @Nullable String objectType, @Nullable String objectName, @Nullable Integer rLocks, @Nullable Integer ixLocks, @Nullable Integer wLocks, @Nullable Duration elapsedTime, @Nullable Duration waitTime, @Nullable String info, @Nullable Session session)
extends Record
A thread that can run queries concurrently on the TM1 server.
Generated from $metadata. Every component is nullable: $select can leave any property out, and navigation properties are only there when expanded. Null components aren't sent.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ODataPropertyContext, for queries: The context of the thread.static final ODataPropertyElapsedTime, for queries: The elapsed time of a thread in seconds.static final ODataPropertyFunction, for queries: The function of the thread.static final ODataPropertyID, for queries: The ID of the thread.static final ODataPropertyInfo, for queries: The info of the thread.static final ODataPropertyIXLocks, for queries: A lock that reserves the right for a thread to obtain a W-lock on an object when all R-locks have been released.static final ODataPropertyName, for queries: The name of the thread.static final ODataPropertyObjectName, for queries: The name of the object that the thread acts on.static final ODataPropertyObjectType, for queries: The object type of the thread.static final ODataPropertyRLocks, for queries: 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.static final ODataPropertySession, for queries: The Session that this thread is currently servicing.static final ODataPropertyState, for queries: The state of the thread.static final ODataPropertyType, for queries: The type of thread, that is, user, worker, chore, system.static final ODataPropertyWLocks, for queries: An exclusive lock that allows only one thread at a time to access and write changes to an object.static final ODataPropertyWaitTime, for queries: The wait time (delay) before a thread should start the process. -
Constructor Summary
ConstructorsConstructorDescriptionThread(@Nullable String etag, @Nullable Long id, @Nullable ThreadType type, @Nullable String name, @Nullable String context, @Nullable String state, @Nullable String function, @Nullable String objectType, @Nullable String objectName, @Nullable Integer rLocks, @Nullable Integer ixLocks, @Nullable Integer wLocks, @Nullable Duration elapsedTime, @Nullable Duration waitTime, @Nullable String info, @Nullable Session session) Creates an instance of aThreadrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringcontext()Returns the value of thecontextrecord component.@Nullable DurationReturns the value of theelapsedTimerecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable Stringetag()Returns the value of theetagrecord component.@Nullable Stringfunction()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Longid()Returns the value of theidrecord component.@Nullable Stringinfo()Returns the value of theinforecord component.@Nullable IntegerixLocks()Returns the value of theixLocksrecord component.@Nullable Stringname()Returns the value of thenamerecord component.@Nullable StringReturns the value of theobjectNamerecord component.@Nullable StringReturns the value of theobjectTyperecord component.@Nullable IntegerrLocks()Returns the value of therLocksrecord component.@Nullable Sessionsession()Returns the value of thesessionrecord component.@Nullable Stringstate()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.@Nullable ThreadTypetype()Returns the value of thetyperecord component.@Nullable DurationwaitTime()Returns the value of thewaitTimerecord component.@Nullable IntegerwLocks()Returns the value of thewLocksrecord component.
-
Field Details
-
ID
ID, for queries: The ID of the thread. -
TYPE
Type, for queries: The type of thread, that is, user, worker, chore, system. -
NAME
Name, for queries: The name of the thread. -
CONTEXT
Context, for queries: The context of the thread. -
STATE
State, for queries: The state of the thread. -
FUNCTION
Function, for queries: The function of the thread. -
OBJECT_TYPE
ObjectType, for queries: The object type of the thread. -
OBJECT_NAME
ObjectName, for queries: The name of the object that the thread acts on. -
R_LOCKS
RLocks, for queries: 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. -
IX_LOCKS
IXLocks, for queries: A lock that reserves the right for a thread to obtain a W-lock on an object when all R-locks have been released. -
W_LOCKS
WLocks, for queries: An exclusive lock that allows only one thread at a time to access and write changes to an object. -
ELAPSED_TIME
ElapsedTime, for queries: The elapsed time of a thread in seconds. -
WAIT_TIME
WaitTime, for queries: The wait time (delay) before a thread should start the process. -
INFO
Info, for queries: The info of the thread. -
SESSION
Session, for queries: The Session that this thread is currently servicing. (a navigation property, for$expand)
-
-
Constructor Details
-
Thread
public Thread(@Nullable String etag, @Nullable Long id, @Nullable ThreadType type, @Nullable String name, @Nullable String context, @Nullable String state, @Nullable String function, @Nullable String objectType, @Nullable String objectName, @Nullable Integer rLocks, @Nullable Integer ixLocks, @Nullable Integer wLocks, @Nullable Duration elapsedTime, @Nullable Duration waitTime, @Nullable String info, @Nullable Session session) Creates an instance of aThreadrecord class.- Parameters:
etag- the value for theetagrecord componentid- the value for theidrecord componenttype- the value for thetyperecord componentname- the value for thenamerecord componentcontext- the value for thecontextrecord componentstate- the value for thestaterecord componentfunction- the value for thefunctionrecord componentobjectType- the value for theobjectTyperecord componentobjectName- the value for theobjectNamerecord componentrLocks- the value for therLocksrecord componentixLocks- the value for theixLocksrecord componentwLocks- the value for thewLocksrecord componentelapsedTime- the value for theelapsedTimerecord componentwaitTime- the value for thewaitTimerecord componentinfo- the value for theinforecord componentsession- the value for thesessionrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
etag
-
id
-
type
-
name
-
context
-
state
-
function
-
objectType
Returns the value of theobjectTyperecord component.- Returns:
- the value of the
objectTyperecord component
-
objectName
Returns the value of theobjectNamerecord component.- Returns:
- the value of the
objectNamerecord component
-
rLocks
-
ixLocks
-
wLocks
-
elapsedTime
Returns the value of theelapsedTimerecord component.- Returns:
- the value of the
elapsedTimerecord component
-
waitTime
-
info
-
session
-