public final class TransportFactory
extends java.lang.Object
Transport instances. A Transport must define a TransportConfig defining the set of parameters needed to construct a new Transport
instance. For example, HttpConfig defines the parameters for constructing a new HttpTransport instance when invoking build(). Below, we define a list
of supported Transports. Note, when defining your own TransportConfig, the type parameter must be specified.
ConsoleTransport transport
HttpTransport transport
KafkaTransport transport
| Constructor and Description |
|---|
TransportFactory(@NonNull TransportConfig transportConfig) |
| Modifier and Type | Method and Description |
|---|---|
Transport |
build() |
public TransportFactory(@NonNull
@NonNull TransportConfig transportConfig)
public Transport build()