public class TaskServiceBuilder extends Object
TaskService instance.| Constructor and Description |
|---|
TaskServiceBuilder() |
| Modifier and Type | Method and Description |
|---|---|
TaskService |
build() |
TaskServiceBuilder |
withSession(com.datastax.driver.core.Session session)
The session object to use for querying Cassandra.
|
TaskServiceBuilder |
withTaskTypes(List<TaskType> taskTypes)
Specifies the
types of tasks that the TaskService will execute. |
TaskServiceBuilder |
withTimeUnit(TimeUnit timeUnit)
The time unit determines a couple things.
|
public TaskServiceBuilder withTimeUnit(TimeUnit timeUnit)
TimeUnit.MINUTES is used for instance, then jobs are scheduled every minute. In this context, a job
refers to finding and executing tasks in the queue for a particular time slice, which brings up the second
thing that timeUnit determines - time slice interval. Time slices are set along fixed intervals,
e.g., 13:00, 13:01, 13:02, etc.public TaskServiceBuilder withSession(com.datastax.driver.core.Session session)
public TaskServiceBuilder withTaskTypes(List<TaskType> taskTypes)
types of tasks that the TaskService will execute. The order is significant
as it determines the order in which tasks are executed.public TaskService build()
Copyright © 2014–2015 Red Hat, Inc.. All rights reserved.