Example usage for org.springframework.messaging StubMessageChannel StubMessageChannel

List of usage examples for org.springframework.messaging StubMessageChannel StubMessageChannel

Introduction

In this page you can find the example usage for org.springframework.messaging StubMessageChannel StubMessageChannel.

Prototype

StubMessageChannel

Source Link

Usage

From source file:org.springframework.messaging.simp.stomp.StompBrokerRelayMessageHandlerIntegrationTests.java

private void createAndStartRelay() throws InterruptedException {
    this.relay = new StompBrokerRelayMessageHandler(new StubMessageChannel(), this.responseChannel,
            new StubMessageChannel(), Arrays.asList("/queue/", "/topic/"));
    this.relay.setRelayPort(this.port);
    this.relay.setApplicationEventPublisher(this.eventPublisher);
    this.relay.setSystemHeartbeatReceiveInterval(0);
    this.relay.setSystemHeartbeatSendInterval(0);

    this.relay.start();
    this.eventPublisher.expectBrokerAvailabilityEvent(true);
}