-
public interface ZeroGpuListenerOptional host-facing lifecycle callbacks (guardrail state changes). All methods have empty defaults so hosts implement only what they care about. Callbacks arrive on the SDK's IO dispatcher — hop to the main thread before touching UI.
-
-
Method Summary
Modifier and Type Method Description UnitonDegraded(String reason)The SDK hit memory pressure and stopped accepting tasks (still alive, may recover). UnitonRecovered()Pressure receded; the SDK accepts tasks again. UnitonShutdown(String reason)Terminal shutdown (guardrail or host stop). -
-
Method Detail
-
onDegraded
Unit onDegraded(String reason)
The SDK hit memory pressure and stopped accepting tasks (still alive, may recover).
-
onRecovered
Unit onRecovered()
Pressure receded; the SDK accepts tasks again.
-
onShutdown
Unit onShutdown(String reason)
Terminal shutdown (guardrail or host stop). The SDK stays down until ZeroGpuSdk.start.
-
-
-
-