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

rpc.turbo.server.TurboConnectServiceServerImpl Maven / Gradle / Ivy

The newest version!
package rpc.turbo.server;

import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;

import rpc.turbo.common.TurboConnectService;
import rpc.turbo.invoke.ServerInvokerFactory;

public final class TurboConnectServiceServerImpl implements TurboConnectService {

	private final ServerInvokerFactory invokerFactory;

	public TurboConnectServiceServerImpl(ServerInvokerFactory invokerFactory) {
		this.invokerFactory = invokerFactory;
	}

	@Override
	public CompletableFuture heartbeat() {
		return CompletableFuture.completedFuture(Boolean.TRUE);
	}

	@Override
	public CompletableFuture> getClassRegisterList() {
		return CompletableFuture.completedFuture(invokerFactory.getClassRegisterList());
	}

	@Override
	public CompletableFuture> getMethodRegisterMap() {
		return CompletableFuture.completedFuture(invokerFactory.getMethodRegisterMap());
	}

	@Override
	public CompletableFuture> getRestRegisterList() {
		return CompletableFuture.completedFuture(invokerFactory.getRestRegisterList());
	}

	@Override
	public CompletableFuture> getClassIdMap() {
		return CompletableFuture.completedFuture(invokerFactory.getClassIdMap());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy