forked from 2227324689/Spring-Cloud-Alibaba-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
tangchen.tangchen
committed
Feb 15, 2020
1 parent
a1ced7f
commit d4627f5
Showing
4 changed files
with
38 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...oud-rocketmq-consumer/src/main/java/com/gupaoedu/book/rocketmq/consumer/InputChannel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.gupaoedu.book.rocketmq.consumer; | ||
|
||
import org.springframework.cloud.stream.annotation.Input; | ||
import org.springframework.messaging.SubscribableChannel; | ||
|
||
/** | ||
* @author juede.tcever | ||
*/ | ||
public interface InputChannel { | ||
|
||
String USER_INPUT = "userInput"; | ||
|
||
String ORDER_INPUT = "orderInput"; | ||
|
||
@Input(InputChannel.USER_INPUT) | ||
SubscribableChannel userInput(); | ||
|
||
@Input(InputChannel.ORDER_INPUT) | ||
SubscribableChannel orderInput(); | ||
} |
15 changes: 15 additions & 0 deletions
15
...loud-rocketmq-consumer/src/main/java/com/gupaoedu/book/rocketmq/consumer/OrderSource.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.gupaoedu.book.rocketmq.consumer; | ||
|
||
import org.springframework.cloud.stream.annotation.Output; | ||
import org.springframework.messaging.MessageChannel; | ||
|
||
/** | ||
* @author juede.tcever | ||
*/ | ||
public interface OrderSource { | ||
|
||
String OUTPUT = "orderOutput"; | ||
|
||
@Output(OrderSource.OUTPUT) | ||
MessageChannel output(); | ||
} |
15 changes: 0 additions & 15 deletions
15
...loud-rocketmq-consumer/src/main/java/com/gupaoedu/book/rocketmq/consumer/TestChannel.java
This file was deleted.
Oops, something went wrong.