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

io.scalecube.services.gateway.transport.GatewayClientTransport Maven / Gradle / Ivy

package io.scalecube.services.gateway.transport;

import io.scalecube.net.Address;
import io.scalecube.services.transport.api.ClientChannel;
import io.scalecube.services.transport.api.ClientTransport;

/** Already knows which type of gateway client to create. */
public class GatewayClientTransport implements ClientTransport {

  private final GatewayClient gatewayClient;

  public GatewayClientTransport(GatewayClient gatewayClient) {
    this.gatewayClient = gatewayClient;
  }

  @Override
  public ClientChannel create(Address address) {
    return new GatewayClientChannel(gatewayClient);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy