You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2020/09/15 07:02:55 UTC
[camel] branch master updated: disruptor: expose information about
the class that DisruptorWaitStrategy wraps
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 228ee25 disruptor: expose information about the class that DisruptorWaitStrategy wraps
228ee25 is described below
commit 228ee25de521fbdfc693a38629e2f2aeca4ed084
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Tue Sep 15 07:26:49 2020 +0200
disruptor: expose information about the class that DisruptorWaitStrategy wraps
---
.../org/apache/camel/component/disruptor/DisruptorWaitStrategy.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorWaitStrategy.java b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorWaitStrategy.java
index cd65338..9707dc2 100644
--- a/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorWaitStrategy.java
+++ b/components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorWaitStrategy.java
@@ -85,6 +85,10 @@ public enum DisruptorWaitStrategy {
this.waitStrategyClass = waitStrategyClass;
}
+ public Class<? extends WaitStrategy> getWaitStrategyClass() {
+ return this.waitStrategyClass;
+ }
+
public WaitStrategy createWaitStrategyInstance() throws Exception {
return waitStrategyClass.getConstructor().newInstance();
}