use of org.eclipse.hono.adapter.limiting.ConnectionLimitManager in project hono by eclipse.
the class AbstractVertxBasedMqttProtocolAdapter method doStart.
@Override
protected final void doStart(final Promise<Void> startPromise) {
registerDeviceAndTenantChangeNotificationConsumers();
log.info("limiting size of inbound message payload to {} bytes", getConfig().getMaxPayloadSize());
if (!getConfig().isAuthenticationRequired()) {
log.warn("authentication of devices turned off");
}
final ConnectionLimitManager connectionLimitManager = Optional.ofNullable(getConnectionLimitManager()).orElseGet(this::createConnectionLimitManager);
setConnectionLimitManager(connectionLimitManager);
checkPortConfiguration().compose(ok -> CompositeFuture.all(bindSecureMqttServer(), bindInsecureMqttServer())).compose(ok -> {
if (authHandler == null) {
authHandler = createAuthHandler();
}
return Future.succeededFuture((Void) null);
}).onComplete(startPromise);
}
Aggregations