examples/spring/spring-boot/src/main/java/io/advantageous/qbit/example/spring/local/RandomNumberExample.java
@Bean
    public CommandLineRunner runner(final RandomNumberServiceAsync randomNumberServiceAsync) {
        return args -> {
            for (int i = 0; i < 100; i++) {
                randomNumberServiceAsync.getRandom(
                        CallbackBuilder.newCallbackBuilder()
                                .withCallback(n -> logger.info("Here's a random number: " + n))
                                .withErrorHandler(e -> logger.error("blew up: " + e.getMessage()))
                                .<Integer>build(),
                        0, 100
                );
            }
        };
    }
@Bean
    public CommandLineRunner runner(final RandomNumberServiceAsync randomNumberServiceAsync) {
        return args -> {
            for (int i = 0; i < 100; i++) {
                randomNumberServiceAsync.getRandom(
                        CallbackBuilder.newCallbackBuilder()
                                .withCallback(n -> logger.info("Here's a random number: " + n))
                                .withErrorHandler(e -> logger.error("blew up: " + e.getMessage()))
                                .<Integer>build(),
                        0, 100
                );
            }
        };
    }
This is the main class of the example client.  I'm using a {@link CommandLineRunner CommandLineRunner} here to
keep the example simple, but this could be any spring bean that needs a QBit proxy injected.

@param randomNumberServiceAsync this is the async service that is injected by Spring
@return the runner instance.