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

org.dihedron.patterns.bus.SynchronousBus Maven / Gradle / Ivy

Go to download

Base set of functionalities, including simple utility classes and more complex patterns.

The newest version!
/*
 * Copyright (c) 2012-2014, Andrea Funto'. All rights reserved. See LICENSE for details.
 */ 
package org.dihedron.patterns.bus;

import java.util.concurrent.Executors;

import org.dihedron.core.License;

/**
 * @author Andrea Funto'
 */
@License
public class SynchronousBus extends AsynchronousBus {
	
	/**
	 * Constructor; the underlying executor service is by default a single thread
	 * executor in order to guarantee the execution (and the restart in case of 
	 * failure) of a single destination at a time.
	 */
	public SynchronousBus() {
		super(Executors.newSingleThreadExecutor());		
	}		
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy