Class RunStreamEvent
-
- All Implemented Interfaces:
public final class RunStreamEvent
Occurs when a new run is created.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
RunStreamEvent.Visitor
An interface that defines how to map each variant of RunStreamEvent to a value of type T.
public final class
RunStreamEvent.ThreadRunCreated
Occurs when a new run is created.
public final class
RunStreamEvent.ThreadRunQueued
Occurs when a run moves to a
queued
status.public final class
RunStreamEvent.ThreadRunInProgress
Occurs when a run moves to an
in_progress
status.public final class
RunStreamEvent.ThreadRunRequiresAction
Occurs when a run moves to a
requires_action
status.public final class
RunStreamEvent.ThreadRunCompleted
Occurs when a run is completed.
public final class
RunStreamEvent.ThreadRunIncomplete
Occurs when a run ends with status
incomplete
.public final class
RunStreamEvent.ThreadRunFailed
Occurs when a run fails.
public final class
RunStreamEvent.ThreadRunCancelling
Occurs when a run moves to a
cancelling
status.public final class
RunStreamEvent.ThreadRunCancelled
Occurs when a run is cancelled.
public final class
RunStreamEvent.ThreadRunExpired
Occurs when a run expires.
-
Method Summary
-
-
Method Detail
-
threadRunCreated
final Optional<RunStreamEvent.ThreadRunCreated> threadRunCreated()
Occurs when a new run is created.
-
threadRunQueued
final Optional<RunStreamEvent.ThreadRunQueued> threadRunQueued()
Occurs when a run moves to a
queued
status.
-
threadRunInProgress
final Optional<RunStreamEvent.ThreadRunInProgress> threadRunInProgress()
Occurs when a run moves to an
in_progress
status.
-
threadRunRequiresAction
final Optional<RunStreamEvent.ThreadRunRequiresAction> threadRunRequiresAction()
Occurs when a run moves to a
requires_action
status.
-
threadRunCompleted
final Optional<RunStreamEvent.ThreadRunCompleted> threadRunCompleted()
Occurs when a run is completed.
-
threadRunIncomplete
final Optional<RunStreamEvent.ThreadRunIncomplete> threadRunIncomplete()
Occurs when a run ends with status
incomplete
.
-
threadRunFailed
final Optional<RunStreamEvent.ThreadRunFailed> threadRunFailed()
Occurs when a run fails.
-
threadRunCancelling
final Optional<RunStreamEvent.ThreadRunCancelling> threadRunCancelling()
Occurs when a run moves to a
cancelling
status.
-
threadRunCancelled
final Optional<RunStreamEvent.ThreadRunCancelled> threadRunCancelled()
Occurs when a run is cancelled.
-
threadRunExpired
final Optional<RunStreamEvent.ThreadRunExpired> threadRunExpired()
Occurs when a run expires.
-
isThreadRunCreated
final Boolean isThreadRunCreated()
-
isThreadRunQueued
final Boolean isThreadRunQueued()
-
isThreadRunInProgress
final Boolean isThreadRunInProgress()
-
isThreadRunRequiresAction
final Boolean isThreadRunRequiresAction()
-
isThreadRunCompleted
final Boolean isThreadRunCompleted()
-
isThreadRunIncomplete
final Boolean isThreadRunIncomplete()
-
isThreadRunFailed
final Boolean isThreadRunFailed()
-
isThreadRunCancelling
final Boolean isThreadRunCancelling()
-
isThreadRunCancelled
final Boolean isThreadRunCancelled()
-
isThreadRunExpired
final Boolean isThreadRunExpired()
-
asThreadRunCreated
final RunStreamEvent.ThreadRunCreated asThreadRunCreated()
Occurs when a new run is created.
-
asThreadRunQueued
final RunStreamEvent.ThreadRunQueued asThreadRunQueued()
Occurs when a run moves to a
queued
status.
-
asThreadRunInProgress
final RunStreamEvent.ThreadRunInProgress asThreadRunInProgress()
Occurs when a run moves to an
in_progress
status.
-
asThreadRunRequiresAction
final RunStreamEvent.ThreadRunRequiresAction asThreadRunRequiresAction()
Occurs when a run moves to a
requires_action
status.
-
asThreadRunCompleted
final RunStreamEvent.ThreadRunCompleted asThreadRunCompleted()
Occurs when a run is completed.
-
asThreadRunIncomplete
final RunStreamEvent.ThreadRunIncomplete asThreadRunIncomplete()
Occurs when a run ends with status
incomplete
.
-
asThreadRunFailed
final RunStreamEvent.ThreadRunFailed asThreadRunFailed()
Occurs when a run fails.
-
asThreadRunCancelling
final RunStreamEvent.ThreadRunCancelling asThreadRunCancelling()
Occurs when a run moves to a
cancelling
status.
-
asThreadRunCancelled
final RunStreamEvent.ThreadRunCancelled asThreadRunCancelled()
Occurs when a run is cancelled.
-
asThreadRunExpired
final RunStreamEvent.ThreadRunExpired asThreadRunExpired()
Occurs when a run expires.
-
accept
final <T extends Any> T accept(RunStreamEvent.Visitor<T> visitor)
-
validate
final RunStreamEvent validate()
-
ofThreadRunCreated
final static RunStreamEvent ofThreadRunCreated(RunStreamEvent.ThreadRunCreated threadRunCreated)
Occurs when a new run is created.
-
ofThreadRunQueued
final static RunStreamEvent ofThreadRunQueued(RunStreamEvent.ThreadRunQueued threadRunQueued)
Occurs when a run moves to a
queued
status.
-
ofThreadRunInProgress
final static RunStreamEvent ofThreadRunInProgress(RunStreamEvent.ThreadRunInProgress threadRunInProgress)
Occurs when a run moves to an
in_progress
status.
-
ofThreadRunRequiresAction
final static RunStreamEvent ofThreadRunRequiresAction(RunStreamEvent.ThreadRunRequiresAction threadRunRequiresAction)
Occurs when a run moves to a
requires_action
status.
-
ofThreadRunCompleted
final static RunStreamEvent ofThreadRunCompleted(RunStreamEvent.ThreadRunCompleted threadRunCompleted)
Occurs when a run is completed.
-
ofThreadRunIncomplete
final static RunStreamEvent ofThreadRunIncomplete(RunStreamEvent.ThreadRunIncomplete threadRunIncomplete)
Occurs when a run ends with status
incomplete
.
-
ofThreadRunFailed
final static RunStreamEvent ofThreadRunFailed(RunStreamEvent.ThreadRunFailed threadRunFailed)
Occurs when a run fails.
-
ofThreadRunCancelling
final static RunStreamEvent ofThreadRunCancelling(RunStreamEvent.ThreadRunCancelling threadRunCancelling)
Occurs when a run moves to a
cancelling
status.
-
ofThreadRunCancelled
final static RunStreamEvent ofThreadRunCancelled(RunStreamEvent.ThreadRunCancelled threadRunCancelled)
Occurs when a run is cancelled.
-
ofThreadRunExpired
final static RunStreamEvent ofThreadRunExpired(RunStreamEvent.ThreadRunExpired threadRunExpired)
Occurs when a run expires.
-
-
-
-