Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
linenumberstrue
final MessageRouterSource sourceDefinition; //... Source definition obtained by parsing CBS response
final MessageRouterSubscribeRequest request = ImmutableMessageRouterPublishRequest.builder()
        .sinkDefinition(sourceDefinition)
        .build();

cut.subscribeForElements(request, Duration.ofMinutes(1))
        .map(JsonElement::getAsJsonObject)
        .doOnNextsubscribe(json -> {
                // application logic
            }),
            ex -> {
                logger.subscribe(warn("An unexpected error while receiving messages from DMaaP", ex);
            });


...

hvvesclient-producer - a reference Java implementation of High Volume VES Collector client

...