Skip to content

Commit c498b86

Browse files
authored
Added convenient getter for stream name
Signed-off-by: David Horak <[email protected]>
1 parent ea16a02 commit c498b86

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spring-rabbit-stream/src/main/java/org/springframework/rabbit/stream/listener/StreamListenerContainer.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ public StreamListenerContainer(Environment environment, @Nullable Codec codec) {
117117
: new DefaultStreamMessageConverter();
118118
}
119119

120+
/**
121+
* Get a name of stream this listener listens to.
122+
*/
123+
public String getStreamName() {
124+
return streamName;
125+
}
126+
120127
/**
121128
* {@inheritDoc}
122129
* Mutually exclusive with {@link #superStream(String, String)}.

0 commit comments

Comments
 (0)