Skip to content

Commit

Permalink
ability to disable kinesis listener processing (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
musketyr authored Sep 19, 2023
1 parent 4839c43 commit b41265d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
import java.util.function.BiConsumer;

@Singleton
@Requires(
property = "aws.kinesis"
)
@Requires(property = "aws.kinesis")
@Requires(property = "aws.kinesis.listener.enabled", value = StringUtils.TRUE, defaultValue = StringUtils.TRUE)
public class KinesisListenerMethodProcessor implements ExecutableMethodProcessor<KinesisListener>, ApplicationEventListener<ShutdownEvent>, Closeable {

private static final Logger LOGGER = LoggerFactory.getLogger(KinesisListenerMethodProcessor.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
property = "aws.kinesis",
classes = KinesisClientLibConfiguration.class
)
@Requires(property = "aws.kinesis.listener.enabled", value = StringUtils.TRUE, defaultValue = StringUtils.TRUE)
public class KinesisListenerMethodProcessor implements ExecutableMethodProcessor<KinesisListener>, ApplicationEventListener<ShutdownEvent> {

private static final Logger LOGGER = LoggerFactory.getLogger(KinesisListener.class);
Expand Down

0 comments on commit b41265d

Please sign in to comment.