Package org.a2aproject.sdk.server.events
Class EnhancedRunnable
java.lang.Object
org.a2aproject.sdk.server.events.EnhancedRunnable
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDoneCallback(EnhancedRunnable.DoneCallback doneCallback) @Nullable ThrowablegetError()voidvoidMarks this runnable as started, preventing further callback additions.void
-
Constructor Details
-
EnhancedRunnable
public EnhancedRunnable()
-
-
Method Details
-
getError
-
setError
-
addDoneCallback
-
markStarted
public void markStarted()Marks this runnable as started, preventing further callback additions. This should be called immediately before submitting to CompletableFuture.runAsync(). -
invokeDoneCallbacks
public void invokeDoneCallbacks()
-