Package app.ductape.sdk.features
Class FeatureService
java.lang.Object
app.ductape.sdk.features.FeatureService
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureService(EnvType env, RequestContext auth) FeatureService(EnvType env, RequestContext auth, JobsService jobsService) FeatureService(RequestContext auth) FeatureService(RequestContext auth, ProductsService productsService, ProcessorApiService processorApiService, FeatureApiService featureApiService) FeatureService(RequestContext auth, ProductsService productsService, ProcessorApiService processorApiService, FeatureApiService featureApiService, LogApiService logApiService, JobsService jobsService) -
Method Summary
Modifier and TypeMethodDescriptionauth()TSdispatch: schedule feature viaJobsService(requires Redis-backed jobs in typical deployments).TSIExecuteWorkflowOptions:featureortagidentifies the feature; session/cache resolved like TS.executeLocal(Map<String, Object> options) TSWorkflowExecutor#executeparity entry point.booleanWhether aFeatureLocalExecutoris registered.relatedExecutions(Map<String, Object> options) replayFromStep(Map<String, Object> options) replayLocal(Map<String, Object> options) TSreplayon the local executor.resumeLocal(Map<String, Object> options) TSresumeon the local executor.voidsetCacheManager(CacheManager cacheManager) TSworkflows.service.ts: optional sharedCacheManagerfor execute/dispatch idempotency.voidsetLocalExecutor(FeatureLocalExecutor executor) Register an in-processFeatureLocalExecutor(TSWorkflowExecutorparity seam).voidstepDetail(Map<String, Object> options)
-
Constructor Details
-
FeatureService
-
FeatureService
-
FeatureService
-
FeatureService
public FeatureService(RequestContext auth, ProductsService productsService, ProcessorApiService processorApiService, FeatureApiService featureApiService) -
FeatureService
public FeatureService(RequestContext auth, ProductsService productsService, ProcessorApiService processorApiService, FeatureApiService featureApiService, LogApiService logApiService, JobsService jobsService)
-
-
Method Details
-
auth
-
setCacheManager
TSworkflows.service.ts: optional sharedCacheManagerfor execute/dispatch idempotency. -
setLocalExecutor
Register an in-processFeatureLocalExecutor(TSWorkflowExecutorparity seam).executeLocal(Map),replayLocal(Map), andresumeLocal(Map)delegate to it after the same session/cache/log pipeline used byexecute(Map). By default, the Java SDK wiresDefaultFeatureExecutor; callers can replace it with a richer engine or passnullto disable local execution. -
hasLocalExecutor
public boolean hasLocalExecutor()Whether aFeatureLocalExecutoris registered. Useful for callers that want to gate behavior at runtime without try/catching the configuration error fromexecuteLocal(Map). -
execute
TSIExecuteWorkflowOptions:featureortagidentifies the feature; session/cache resolved like TS. -
executeLocal
TSWorkflowExecutor#executeparity entry point.Runs the feature against the registered
FeatureLocalExecutorinstead of submitting to the remote processor. Re-uses the same session-resolution + cache-first + structured-log pipeline asexecute(Map)so the public envelope is identical (success/status/data/feature_id/error).- Throws:
IllegalStateException- when no local executor has been registered.
-
replayLocal
TSreplayon the local executor. Honorsfrom_stepwhen supplied. -
resumeLocal
TSresumeon the local executor. Honorsfrom_checkpointandfrom_step. -
dispatch
TSdispatch: schedule feature viaJobsService(requires Redis-backed jobs in typical deployments). -
signal
-
query
-
replay
-
restart
-
resume
-
replayFromStep
-
status
-
history
-
stepDetail
-
compare
-