Example usage for org.springframework.integration.aggregator HeaderAttributeCorrelationStrategy HeaderAttributeCorrelationStrategy

List of usage examples for org.springframework.integration.aggregator HeaderAttributeCorrelationStrategy HeaderAttributeCorrelationStrategy

Introduction

In this page you can find the example usage for org.springframework.integration.aggregator HeaderAttributeCorrelationStrategy HeaderAttributeCorrelationStrategy.

Prototype

public HeaderAttributeCorrelationStrategy(String attributeName) 

Source Link

Usage

From source file:com.apress.prospringintegration.messagestore.gemfire.GemfireMessageStoreConfiguration.java

@Bean
public CorrelationStrategy correlationStrategy() {
    return new HeaderAttributeCorrelationStrategy(this.correlationHeader);
}

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

public AbstractCorrelatingMessageHandler(MessageGroupProcessor processor, MessageGroupStore store,
        CorrelationStrategy correlationStrategy, ReleaseStrategy releaseStrategy) {
    Assert.notNull(processor);//from  w w w.  j  av  a 2 s .c  o  m

    Assert.notNull(store);
    setMessageStore(store);
    this.outputProcessor = processor;
    this.correlationStrategy = correlationStrategy == null
            ? new HeaderAttributeCorrelationStrategy(MessageHeaders.CORRELATION_ID)
            : correlationStrategy;
    this.releaseStrategy = releaseStrategy == null ? new SequenceSizeReleaseStrategy() : releaseStrategy;
    this.messagingTemplate.setSendTimeout(DEFAULT_SEND_TIMEOUT);
    sequenceAware = this.releaseStrategy instanceof SequenceSizeReleaseStrategy;
}

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

public CorrelatingMessageHandler(MessageGroupProcessor processor, MessageGroupStore store,
        CorrelationStrategy correlationStrategy, ReleaseStrategy releaseStrategy) {
    Assert.notNull(processor);//from w  w w .ja v a  2  s . c om
    Assert.notNull(store);
    setMessageStore(store);
    this.outputProcessor = processor;
    this.correlationStrategy = correlationStrategy == null
            ? new HeaderAttributeCorrelationStrategy(MessageHeaders.CORRELATION_ID)
            : correlationStrategy;
    this.releaseStrategy = releaseStrategy == null ? new SequenceSizeReleaseStrategy() : releaseStrategy;
    this.messagingTemplate.setSendTimeout(DEFAULT_SEND_TIMEOUT);
}