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

org.distributeme.agents.transporter.TransporterServiceImpl Maven / Gradle / Ivy

There is a newer version: 4.0.2
Show newest version
package org.distributeme.agents.transporter;

import org.distributeme.agents.AgencyException;
import org.distributeme.agents.AgencyImpl;
import org.distributeme.agents.AgentPackage;

public class TransporterServiceImpl implements TransporterService{

	@Override
	public void receiveAndAwakeAgent(AgentPackage agent)
			throws TransporterServiceException {
		try{
			AgencyImpl.INSTANCE.receiveAndAwakeAgent(agent);
		}catch(AgencyException e){
			throw new TransporterServiceException("Target's agency exception, transport aborted", e);
		}
		
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy