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

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

There is a newer version: 2.0.8.RELEASE
Show newest version
package reactor.groovy.config

import groovy.transform.CompileStatic
import reactor.core.config.DispatcherConfiguration
import reactor.core.config.DispatcherType
import reactor.fn.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