# Does ClientLifecycleEventListener block other extensions

**URL:** <https://community.hivemq.com/t/does-clientlifecycleeventlistener-block-other-extensions/1320>\
**Category:** HiveMQ Extension SDK\
**Created:** [July 25, 2022, 12:25pm UTC](https://community.hivemq.com/t/does-clientlifecycleeventlistener-block-other-extensions/1320 "2022-07-25T12:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juggie](https://avatars.discourse-cdn.com/v4/letter/j/c57346/32.png) [@juggie](https://community.hivemq.com/u/juggie)\
**Post date:** [July 25, 2022, 12:25pm UTC](https://community.hivemq.com/t/does-clientlifecycleeventlistener-block-other-extensions/1320/1 "2022-07-25T12:25:04Z")

</div>

Hi! Does the an event Listener, which implements the ClientLifecycleEventListener block processing or does it run asynchronously?  
My problem:  
I have an extension with a SimpleAuthentificator, which authenticates the certificates in the onConnect() method, this extension has the highest priority.

Then a second extension with an Authorizer, which implements PublishInboundInterceptor and SubscriptionAuthorizer, which prohibits/allows subscribing to a topic.

A third extension is to implement an ClientLifecycleEventListener, which has another task when a connection is successfully established, it overrides  
onAuthenticationSuccessful()  
Will this 3. extension with the ClientLifecycleEventListener block further extensions, especially the 2. extension, or will the other extensions run asynchronously?

---

<div class="post-metadata">

**Author:** ![FloLi](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/floli/32/17_2.png) [@FloLi](https://community.hivemq.com/u/FloLi)\
**Post date:** [August 1, 2022, 8:13am UTC](https://community.hivemq.com/t/does-clientlifecycleeventlistener-block-other-extensions/1320/2 "2022-08-01T08:13:45Z")

</div>

Hi juggie,  
welcome to the forum.

The answer is Yes and No 🙂

Yes: it will block other extension tasks for the same clientID, so it is very recommended to not block in any callback that you register in your extension.

No: It does not block another client to authenticate, authorise or call the lifecycle event listener. BUT if too many clients run into the same issue that their threads are blocked, then no more extension tasks can be executed. Same advice don’t block 😉

Regards  
Flo
