Results 1 to 2 of 2

Thread: Thread name when using ConcurrencyInterceptor

  1. #1
    Join Date
    Oct 2006
    Location
    Seattle, USA
    Posts
    63

    Default Thread name when using ConcurrencyInterceptor

    I'm seeing that the thread name when using @Concurrency, when logged from within the @MessageEndpoint's @Handler, sometimes is set to the endpoint name + <integer>, while other times it's set to "message bus=<integer>".

    Is that a bug?

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    The default task executor that is created when using @Concurrency has a CallerRunsPolicy (for throttling input tasks). Therefore, when there are no non-busy threads in the pool, the calling thread (message-bus) invokes the handler directly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •