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

org.distributeme.test.interception.TestService Maven / Gradle / Ivy

package org.distributeme.test.interception;

import net.anotheria.anoprise.metafactory.Service;
import org.distributeme.annotation.DistributeMe;

import java.util.Map;

@DistributeMe
public interface TestService extends Service{
	void callByValue(Map parameters);

	void callByReference(Map parameters);
	
	int sum(int a, int b);
	
	int modifiedSum(int a, int b);
	
	int modifiedSumParameters(int a, int b);
	
	/**
	 * This method demonstrates modification of the return value by various interceptors.
	 * @return
	 */
	String returnString();
	
	/**
	 * This method demonstrates how an interceptor in the stub can prevent the call from being sent to server at all.
	 * @return
	 */
	String returnStringCaughtInClient();
	
	/**
	 * This method sleeps long....
	 * @param timeToSleep
	 */
	void sleepingCall(long timeToSleep);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy