@Component public class SearchIndexUpdateJmsMessageListener extends Object
| Constructor and Description |
|---|
SearchIndexUpdateJmsMessageListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
controlSearchIndexUpdateJmsMessageListener()
Periodically check the configuration and apply the action to the storage policy processor JMS message listener service, if needed.
|
void |
processMessage(String payload,
Map<Object,Object> allHeaders)
Processes a JMS message.
|
@Scheduled(fixedDelay=60000L) public void controlSearchIndexUpdateJmsMessageListener()
@JmsListener(id="search_index_update_queue",
containerFactory="jmsListenerContainerFactory",
destination="search_index_update_queue")
public void processMessage(String payload,
@Headers
Map<Object,Object> allHeaders)
payload - the message payloadallHeaders - the JMS headersCopyright © 2021. All rights reserved.