Example usage for org.springframework.integration.store MessageGroupStore registerMessageGroupExpiryCallback

List of usage examples for org.springframework.integration.store MessageGroupStore registerMessageGroupExpiryCallback

Introduction

In this page you can find the example usage for org.springframework.integration.store MessageGroupStore registerMessageGroupExpiryCallback.

Prototype

void registerMessageGroupExpiryCallback(MessageGroupCallback callback);

Source Link

Document

Register a callback for when a message group is expired through #expireMessageGroups(long) .

Usage

From source file:org.springframework.integration.aggregator.AbstractCorrelatingMessageHandler.java

public void setMessageStore(MessageGroupStore store) {
    this.messageStore = store;
    store.registerMessageGroupExpiryCallback(new MessageGroupCallback() {
        public void execute(MessageGroupStore messageGroupStore, MessageGroup group) {
            forceComplete(group);/*w  w  w .j  av  a  2  s.  c o  m*/
        }
    });
}