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

org.matomo.java.tracking.Java8SenderProvider Maven / Gradle / Ivy

The newest version!
package org.matomo.java.tracking;

import java.util.concurrent.Executors;

/**
 * Provides a {@link Sender} implementation based on Java 8.
 */
public class Java8SenderProvider implements SenderProvider {

  @Override
  public Sender provideSender(
      TrackerConfiguration trackerConfiguration, QueryCreator queryCreator
  ) {
    return new Java8Sender(
        trackerConfiguration,
        queryCreator,
        Executors.newFixedThreadPool(trackerConfiguration.getThreadPoolSize(), new DaemonThreadFactory())
    );
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy