Package com.hivemq.adapter.sdk.api.model
Interface ProtocolAdapterInput<E extends ProtocolAdapterConfig>
-
- Type Parameters:
E- the ProtocolAdapterConfig implementation for this Protocol Adapter
public interface ProtocolAdapterInput<E extends ProtocolAdapterConfig>Object containing information and services for the construction of adapter instances
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull AdapterFactoriesadapterFactories()EgetConfig()@NotNull ProtocolAdapterMetricsServicegetProtocolAdapterMetricsHelper()@NotNull ProtocolAdapterStategetProtocolAdapterState()@NotNull StringgetVersion()@NotNull ModuleServicesmoduleServices()
-
-
-
Method Detail
-
getConfig
@NotNull E getConfig()
- Returns:
- the concrete config implementation for this protocol adapters
-
getProtocolAdapterState
@NotNull @NotNull ProtocolAdapterState getProtocolAdapterState()
- Returns:
- the
ProtocolAdapterStatefor this adapter. Via this object changes in the connection and runtime status of the adapter can be made.
-
moduleServices
@NotNull @NotNull ModuleServices moduleServices()
- Returns:
- Object that contains a variety of services useful for the start of a protocol adapter.
-
adapterFactories
@NotNull @NotNull AdapterFactories adapterFactories()
- Returns:
- Object that contains a variety of factories for creating concrete implementations of the interfaces within the SDK.
-
getProtocolAdapterMetricsHelper
@NotNull @NotNull ProtocolAdapterMetricsService getProtocolAdapterMetricsHelper()
- Returns:
- the
ProtocolAdapterMetricsServiceto increment and decrement metrics for the adapter.
-
-