Non-Durable Queue Lifecycle

Options
triptesh
triptesh Member Posts: 27

Hi Community,

I am going through Understanding Solace Endpoints: Durable vs. Non-Durable - Solace and tried to create Queues using Solace Java API (jcsmp).

We could see that Non-Durable queue gets deleted if it is disconnected from Client for more than 60 seconds.

Can it be possible to increase more than 60 seconds , for example Non-Durable queue will get deleted only when it is disconnected from Client for more than 120 seconds ?


Thanks,

Triptesh

Answers

  • TomF
    TomF Member, Employee Posts: 408 Solace Employee
    Options

    Hi @triptesh,

    No, unfortunately not. The non-durable endpoint lifetime isn't configurable.

    You could, perhaps, use the SEMP API to periodically clean up durable endpoints that have not had a client connected for more than 60 seconds. However, I think it would be worth understanding more about your use case - does your application take more than 60 seconds to start up?

  • triptesh
    triptesh Member Posts: 27
    Options

    Hi @TomF , For our use case, we need it to handle cases where the client may be disconnected for more than 60 seconds.

  • TomF
    TomF Member, Employee Posts: 408 Solace Employee
    Options

    Hi @triptesh if that's the case then it sounds like you need a durable endpoint.