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

net.mostlyoriginal.api.event.dispatcher.BaselineDispatcherBenchmark Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
package net.mostlyoriginal.api.event.dispatcher;

import net.mostlyoriginal.api.event.common.Event;
import net.mostlyoriginal.api.event.common.EventDispatchStrategy;
import net.mostlyoriginal.api.event.common.EventListener;

/**
 * Test basic dispatcher.
 *
 * @author DaanVanYperen
 */
public class BaselineDispatcherBenchmark extends DispatcherBenchmark {

	protected EventDispatchStrategy instanceDispatcher() {
		return new EmptyEventDispatcher();
	}

	private class EmptyEventDispatcher implements EventDispatchStrategy {
		@Override
		public void register(EventListener listener) {
		}

		@Override
		public void dispatch(Event event) {
		}

		@Override
		public  T dispatch(Class type) {
			return null;
		}

		@Override
		public void process() {

		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy