advantageous / qbit

The Java microservice lib. QBit is a reactive programming lib for building microservices - JSON, HTTP, WebSocket, and REST. QBit uses reactive programming to build elastic REST, and WebSockets based cloud friendly, web services. SOA evolved for mobile and cloud. ServiceDiscovery, Health, reactive StatService, events, Java idiomatic reactive programming for Microservices.
http://advantageous.github.io/qbit/
Apache License 2.0
709 stars 140 forks source link

add queuecallback handler as runnable to serviceQueue builder #714

Open RichardHightower opened 8 years ago

RichardHightower commented 8 years ago

99 times out of 100, you want to just register for the process method not any other so we should have a version of this

        serviceBuilder.addQueueCallbackHandler(object : QueueCallBackHandler {
            override fun queueProcess() {
                super.queueProcess()
            }
        })

that handles just a Runnable. addQueueProcessCallHandler