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

WEBPIECESxPACKAGE.base.libs.RemoteServiceImpl Maven / Gradle / Ivy

package WEBPIECESxPACKAGE.base.libs;

import java.util.concurrent.CompletableFuture;

public class RemoteServiceImpl implements RemoteService {

	@Override
	public CompletableFuture fetchRemoteValue(String s, int i)  {
		//Here a remote service usually returns an uncompleted future and completes it when the remote
		//service returns it's value unblocking this thread for others to use.
		
		//In this case we just return a completely future though.
		return CompletableFuture.completedFuture(33);
	}

	@Override
	public void sendData(int num) {
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy