Skip to content

Add an event to RedisContainer when subscription is ready [DATAREDIS-1047] #1622

Closed
@spring-projects-issues

Description

@spring-projects-issues

Piotr opened DATAREDIS-1047 and commented

Currently addMessageListener is asynchronous method and there is no way to determine if a subscription is ready (it uses lazy loading). In my scenario I need to know when a service is ready to receive messages from Redis as it needs to send initial state to connected clients.

The feature would be also useful for scenarios when subscriptions are added at runtime rather than at startup.

 

The similar problem was reported here: https://stackoverflow.com/questions/32297321/spring-data-redis-how-do-i-know-that-messagelistener-is-ready


No further details from DATAREDIS-1047

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions