Interface Transport.Factory

Enclosing interface:
Transport
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 static interface Transport.Factory
Creates a client's transports, one for each connection; see MqttClientBuilder.transportFactory(Transport.Factory).
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String clientId)
    Returns a fresh transport promptly, without connecting it.
  • Method Details

    • create

      Transport create(String clientId)
      Returns a fresh transport promptly, without connecting it.
      Parameters:
      clientId - the identifier of the client that requests the transport
      Returns:
      a fresh transport, not yet connected