@Override public MqttSource build() { if (delegate == null) { delegate = delegateBuilder.build(); } return new ImmutableMqttSource(delegate, qos); } }
@Override public MqttSource build() { if (delegate == null) { delegate = delegateBuilder.build(); } return new ImmutableMqttSource(delegate, qos); } }
/** * Creates a new {@link Source}. * * @param authorizationContext the authorization context * @param address the source address where messages are consumed from * @return the created {@link Source} */ public static Source newSource(final AuthorizationContext authorizationContext, final String address) { return newSourceBuilder().address(address).authorizationContext(authorizationContext).build(); }
/** * Creates a new {@link Source}. * * @param authorizationContext the authorization context * @param address the source address where messages are consumed from * @return the created {@link Source} */ public static Source newSource(final AuthorizationContext authorizationContext, final String address) { return newSourceBuilder().address(address).authorizationContext(authorizationContext).build(); }
/** * Creates a new {@link Source}. * * @param authorizationContext the authorization context * @param address the source address where messages are consumed from * @param index the index inside the connection * @return the created {@link Source} */ public static Source newSource(final AuthorizationContext authorizationContext, final String address, final int index) { return newSourceBuilder().address(address).authorizationContext(authorizationContext).index(index).build(); }
/** * Creates a new {@link Source}. * * @param authorizationContext the authorization context * @param address the source address where messages are consumed from * @param index the index inside the connection * @return the created {@link Source} */ public static Source newSource(final AuthorizationContext authorizationContext, final String address, final int index) { return newSourceBuilder().address(address).authorizationContext(authorizationContext).index(index).build(); }
.enforcement(readEnforcement) .headerMapping(readHeaderMapping) .build();
.enforcement(readEnforcement) .headerMapping(readHeaderMapping) .build();