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

enable same thread access checker for SendQueue processor #715

Open RichardHightower opened 8 years ago

RichardHightower commented 8 years ago

        if (serviceThread.get() !=null && serviceThread.get() == Thread.currentThread()) {
            mgmt.increment(name)

        } else {
            val thread = Thread.currentThread()
            logger.info("Getting called from another thread {} not {}", thread.name, serviceThread.get()?.name ?: "not set")
        }