Interface ManagedChannelFactory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ManagedChannelFactory
An object that produces a ManagedChannel given host, port and max message size.
  • Method Summary

    Modifier and Type
    Method
    Description
    io.grpc.ManagedChannel
    make(@NotNull String host, int port, int maxInboundMessageSize)
    Create a new ManagedChannel using the given host port and size.
  • Method Details

    • make

      io.grpc.ManagedChannel make(@NotNull @NotNull String host, int port, int maxInboundMessageSize) throws IOException
      Create a new ManagedChannel using the given host port and size.
      Parameters:
      host - the host name
      port - the port
      maxInboundMessageSize - the maximum inbound message size.
      Returns:
      a new ManagedChannel
      Throws:
      IOException - if the channel could not be created