Class ChatKitThread.Status
-
- All Implemented Interfaces:
public final class ChatKitThread.Status
Current status for the thread. Defaults to
active
for newly created threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
ChatKitThread.Status.Visitor
An interface that defines how to map each variant of Status to a value of type T.
public final class
ChatKitThread.Status.Locked
Indicates that a thread is locked and cannot accept new input.
public final class
ChatKitThread.Status.Closed
Indicates that a thread has been closed.
-
Method Summary
Modifier and Type Method Description final Optional<JsonValue>
active()
Indicates that a thread is active. final Optional<ChatKitThread.Status.Locked>
locked()
Indicates that a thread is locked and cannot accept new input. final Optional<ChatKitThread.Status.Closed>
closed()
Indicates that a thread has been closed. final Boolean
isActive()
final Boolean
isLocked()
final Boolean
isClosed()
final JsonValue
asActive()
Indicates that a thread is active. final ChatKitThread.Status.Locked
asLocked()
Indicates that a thread is locked and cannot accept new input. final ChatKitThread.Status.Closed
asClosed()
Indicates that a thread has been closed. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(ChatKitThread.Status.Visitor<T> visitor)
final ChatKitThread.Status
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static ChatKitThread.Status
ofActive()
Indicates that a thread is active. final static ChatKitThread.Status
ofLocked(ChatKitThread.Status.Locked locked)
Indicates that a thread is locked and cannot accept new input. final static ChatKitThread.Status
ofClosed(ChatKitThread.Status.Closed closed)
Indicates that a thread has been closed. -
-
Method Detail
-
locked
final Optional<ChatKitThread.Status.Locked> locked()
Indicates that a thread is locked and cannot accept new input.
-
closed
final Optional<ChatKitThread.Status.Closed> closed()
Indicates that a thread has been closed.
-
asLocked
final ChatKitThread.Status.Locked asLocked()
Indicates that a thread is locked and cannot accept new input.
-
asClosed
final ChatKitThread.Status.Closed asClosed()
Indicates that a thread has been closed.
-
accept
final <T extends Any> T accept(ChatKitThread.Status.Visitor<T> visitor)
-
validate
final ChatKitThread.Status validate()
-
ofActive
final static ChatKitThread.Status ofActive()
Indicates that a thread is active.
-
ofLocked
final static ChatKitThread.Status ofLocked(ChatKitThread.Status.Locked locked)
Indicates that a thread is locked and cannot accept new input.
-
ofClosed
final static ChatKitThread.Status ofClosed(ChatKitThread.Status.Closed closed)
Indicates that a thread has been closed.
-
-
-
-