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

reactor.groovy.config.DispatcherConfigurationBuilder.groovy Maven / Gradle / Ivy

The newest version!
package reactor.groovy.config

import groovy.transform.CompileStatic
import reactor.core.configuration.DispatcherConfiguration
import reactor.core.configuration.DispatcherType
import reactor.function.Supplier

/**
 * @author Stephane Maldini
 */
@CompileStatic
class DispatcherConfigurationBuilder implements Supplier{

	final String name

	DispatcherType type = DispatcherType.RING_BUFFER
	Integer backlog
	Integer size

	private DispatcherConfiguration dispatcherConfiguration

	DispatcherConfigurationBuilder(String name) {
		this.name = name
	}

	@Override
	DispatcherConfiguration get() {
		return dispatcherConfiguration ?: new DispatcherConfiguration(name, type, backlog, size)
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy