Class TasksConfig.Builder
java.lang.Object
dev.tachyonmcp.core.server.config.TasksConfig.Builder
- Enclosing class:
TasksConfig
Builder for
TasksConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()cancel(boolean cancel) enabled(boolean enabled) Sets the default retention window for a terminal task's result.list(boolean list) on()Enables the tasks capability with the list surface on.pageSize(int pageSize) pollInterval(@Nullable Duration pollInterval) Sets the defaultpollIntervalsuggested in task responses.requests(boolean requests)
-
Method Details
-
enabled
-
list
-
cancel
-
requests
-
pageSize
-
keepAlive
Sets the default retention window for a terminal task's result. Default is 5 minutes. -
pollInterval
Sets the defaultpollIntervalsuggested in task responses. Default isnull(suggest none); pass a value only if it fits how long tasks on this server actually run — spec-compliant requestors throttle their own polling to match it. -
on
Enables the tasks capability with the list surface on. -
build
-