All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.agent.queueing.TaskQueueFactory Maven / Gradle / Ivy

There is a newer version: 9999.0
Show newest version
package com.wavefront.agent.queueing;

import com.wavefront.agent.data.DataSubmissionTask;
import com.wavefront.agent.handlers.HandlerKey;

import javax.annotation.Nonnull;

/**
 * A factory for {@link TaskQueue} objects.
 *
 * @author [email protected].
 */
public interface TaskQueueFactory {

  /**
   * Create a task queue for a specified {@link HandlerKey} and thread number.
   *
   * @param handlerKey handler key for the {@code TaskQueue}. Usually part of the file name.
   * @param threadNum thread number. Usually part of the file name.
   *
   * @return task queue for the specified thread
   */
  > TaskQueue getTaskQueue(@Nonnull HandlerKey handlerKey,
                                                              int threadNum);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy