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