Package ke.ric.renderer.api
Interface RenderTask
public interface RenderTask
A nonblocking task handle. Progress, cancellation and completion observation are safe from any thread.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Cooperatively cancels from any thread; returns true only when cancellation wins, false after any terminal outcome.Returns the immutable frame or typed failure; continuations have no server-thread guarantee.id()Returns the provider-assigned task identifier.progress()Returns actual-work progress in 0..10000 basis points; repeated snapshots may be equal and failures retain the last value.status()Returns the current coarse lifecycle state.
-
Method Details
-
id
UUID id()Returns the provider-assigned task identifier. -
status
RenderStatus status()Returns the current coarse lifecycle state. -
progress
RenderProgress progress()Returns actual-work progress in 0..10000 basis points; repeated snapshots may be equal and failures retain the last value. -
cancel
boolean cancel()Cooperatively cancels from any thread; returns true only when cancellation wins, false after any terminal outcome. -
completion
CompletionStage<RenderResult> completion()Returns the immutable frame or typed failure; continuations have no server-thread guarantee. Never block the server thread.
-