Package app.ductape.sdk
Class Ductape
java.lang.Object
app.ductape.sdk.Ductape
Java SDK entrypoint; mirrors the service surface of
sdk/ts/src/index.ts (see
PARITY_MAP.md Ductape row for gaps). Constructors wire API clients, product
services, jobs/graph/database/vector/brokers/resilience/feature/warehouse/agents/models/secrets,
optional Redis/Redisson for cache + monitor worker queues.-
Constructor Summary
ConstructorsConstructorDescriptionDuctape(EnvType env, RequestContext auth) Deprecated.Ductape(EnvType env, RequestContext auth, HttpRateLimitConfig httpRateLimitConfig) Deprecated.Ductape(EnvType env, RequestContext auth, io.lettuce.core.api.StatefulRedisConnection<String, String> redisConnection, org.redisson.api.RedissonClient redissonClient) Deprecated.Ductape(EnvType apiEnv, RequestContext auth, String product, String env, io.lettuce.core.api.StatefulRedisConnection<String, String> redisConnection, org.redisson.api.RedissonClient redissonClient, HttpRateLimitConfig httpRateLimitConfig) Creates an SDK instance with optional Redis/Redisson runtime clients and custom outbound HTTP rate limiting.Ductape(RequestContext auth, String product, String env) Creates an SDK instance;productandenvare inherited by database/graph/vector calls. -
Method Summary
Modifier and TypeMethodDescriptionactions()Deprecated.Useapi().agents()Returns the agents service.api()App-action runtime: run, dispatch, config, OAuth (TSductape.api).app()TSDuctape.app.apps()Returns the app API service.auth()Returns the request context used for authenticated API calls.auths()TSDuctape.auths: app auth/credential CRUD.brokers()Deprecated.Useevents()instead.cache()Returns the cache service.Returns the database service.env()Returns the SDK environment used to resolve API service base URLs.events()Returns the events service (message brokers: produce, subscribe, topics).features()Returns the feature API service.Returns the high-level feature service.fetchWorkspaceApps(String status) TSfetchWorkspaceApps.fetchWorkspaceProjects(String status) TSfetchWorkspaceProjects.graphs()Returns the graph service.imports()Returns the import service.jobs()Returns the jobs service.logs()Returns the logs API service.models()Returns the model service.voidmonitor()Boot the SDK's runtime worker loops on top of theRedissonClientwired into the constructor.Returns the notifications service.voidonMonitorEvent(String event, BiConsumer<Map<String, Object>, Throwable> listener) Registers a listener for monitor worker lifecycle events such asjobs.completed.pricing()Returns the pricing API service.Returns the processor API service.product()TSductape.product.products()Returns the low-level products API service.Returns the high-level products service.Returns the resilience API service.Returns the high-level resilience service.secrets()Returns the secrets API service.Returns the high-level secrets service.sessions()Returns the sessions service.voidStops all SDK-owned monitor worker loops started bymonitor().storage()Returns the storage service.users()Returns the user API service.vectors()Returns the vector database service.Returns the warehouse orchestration service.webhooks()Returns the webhooks API service.Returns the workspace API service.
-
Constructor Details
-
Ductape
Creates an SDK instance;productandenvare inherited by database/graph/vector calls. -
Ductape
Deprecated.UseDuctape(RequestContext, String, String)— pass product tag and env slug, notEnvType. -
Ductape
@Deprecated public Ductape(EnvType env, RequestContext auth, HttpRateLimitConfig httpRateLimitConfig) Deprecated.Creates an SDK instance with a custom outbound HTTP rate limit. -
Ductape
@Deprecated public Ductape(EnvType env, RequestContext auth, io.lettuce.core.api.StatefulRedisConnection<String, String> redisConnection, org.redisson.api.RedissonClient redissonClient) Deprecated.Creates an SDK instance with optional Redis and Redisson clients for cache/session/job runtime features. -
Ductape
public Ductape(EnvType apiEnv, RequestContext auth, String product, String env, io.lettuce.core.api.StatefulRedisConnection<String, String> redisConnection, org.redisson.api.RedissonClient redissonClient, HttpRateLimitConfig httpRateLimitConfig) Creates an SDK instance with optional Redis/Redisson runtime clients and custom outbound HTTP rate limiting.
-
-
Method Details
-
monitor
public void monitor()Boot the SDK's runtime worker loops on top of theRedissonClientwired into the constructor.TS uses BullMQ for jobs/healthcheck workers; Java is Redisson-native by design and does not speak the BullMQ wire protocol. We provide the same functional surface using
RedissonJobQueueAdapter:- Jobs loop — claims due jobs from
ductape_jobswith worker-token locks and dispatches toapp.ductape.sdk.processor.ProcessorService#runJobs; emitsjobs.active/jobs.completed/jobs.failedevents. - Healthcheck loop — same pattern over
ductape_healthchecks, persisting per-env results underhealthcheck:{product}:{tag}:{env}Redis keys; emitshealthchecks.active/healthchecks.completed/healthchecks.failed. - Healthcheck updater — repeatable
healthchecks-updaterjob that aggregates per-env results and forwards viaapp.ductape.sdk.processor.ProcessorService#updateHealthcheckOnProcessor; emitshealthchecks-updater.completed/healthchecks-updater.failed.
onMonitorEvent(String, BiConsumer); payloads are normalizedMap<String, Object>(id,name,data, …), not raw BullMQ Job objects. - Jobs loop — claims due jobs from
-
stopMonitor
public void stopMonitor()Stops all SDK-owned monitor worker loops started bymonitor(). -
onMonitorEvent
Registers a listener for monitor worker lifecycle events such asjobs.completed. -
env
Returns the SDK environment used to resolve API service base URLs. -
auth
Returns the request context used for authenticated API calls. -
products
Returns the low-level products API service. -
product
TSductape.product. -
fetchWorkspaceApps
TSfetchWorkspaceApps. -
fetchWorkspaceProjects
TSfetchWorkspaceProjects. -
app
TSDuctape.app. -
auths
TSDuctape.auths: app auth/credential CRUD. -
productsService
Returns the high-level products service. -
users
Returns the user API service. -
workspaces
Returns the workspace API service. -
apps
Returns the app API service. -
features
Returns the feature API service. -
webhooks
Returns the webhooks API service. -
logs
Returns the logs API service. -
pricing
Returns the pricing API service. -
processor
Returns the processor API service. -
secrets
Returns the secrets API service. -
resilience
Returns the resilience API service. -
storage
Returns the storage service. -
sessions
Returns the sessions service. -
cache
Returns the cache service. -
notifications
Returns the notifications service. -
jobs
Returns the jobs service. -
databases
Returns the database service. -
graphs
Returns the graph service. -
vectors
Returns the vector database service. -
events
Returns the events service (message brokers: produce, subscribe, topics). -
brokers
Deprecated.Useevents()instead. -
resiliences
Returns the high-level resilience service. -
featureService
Returns the high-level feature service. -
warehouse
Returns the warehouse orchestration service. -
agents
Returns the agents service. -
api
App-action runtime: run, dispatch, config, OAuth (TSductape.api). -
actions
Deprecated.Useapi(). -
imports
Returns the import service. -
models
Returns the model service. -
secretService
Returns the high-level secrets service. -
cloudApiService
-
cloudService
-
Ductape(RequestContext, String, String)— pass product tag and env slug, notEnvType.