Skip to main content

Java SDK

The Java SDK for writing TaskDaemon handlers.

Installation

Maven

Gradle

Basic Usage

Task Record

Result Types

Usage:

Complete Example

Error Handling

Exceptions are automatically caught and converted to non-retryable errors:
For explicit error handling:

Dockerfile

For GraalVM native image (faster startup):

Handler Configuration

Requirements

  • Java 17+ (uses records and sealed interfaces)
  • Jackson for JSON serialization (included in SDK)