org.matomo.java.tracking.Java8SenderProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matomo-java-tracker Show documentation
Show all versions of matomo-java-tracker Show documentation
Official Java implementation of the Matomo Tracking HTTP API for Java 8.
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())
);
}
}