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

dev.qixils.crowdcontrol.StartableService Maven / Gradle / Ivy

The newest version!
package dev.qixils.crowdcontrol;

import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Blocking;
import org.reactivestreams.Publisher;

import java.io.IOException;

/**
 * A simulated service that must be manually started.
 *
 * @param  the type of {@link Publisher} returned by the {@code #sendRequest} methods
 * @since 3.3.0
 */
@ApiStatus.AvailableSince("3.3.0")
public interface StartableService extends SimulatedService {
	/**
	 * Starts the simulated server or client.
	 *
	 * @throws IOException if an I/O error occurs in the underlying socket
	 * @since 3.3.0
	 */
	@ApiStatus.AvailableSince("3.3.0")
	@Blocking
	void start() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy