From b02ef82c6239a760d8888f20e7e51d2df0303f69 Mon Sep 17 00:00:00 2001 From: Eric Zhao Date: Thu, 11 Apr 2019 17:11:52 +0800 Subject: [PATCH] Add constructor for EntryConfig in sentinel-reactor-adapter Signed-off-by: Eric Zhao --- .../com/alibaba/csp/sentinel/adapter/reactor/EntryConfig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sentinel-adapter/sentinel-reactor-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/reactor/EntryConfig.java b/sentinel-adapter/sentinel-reactor-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/reactor/EntryConfig.java index 781b66c9..be677d53 100644 --- a/sentinel-adapter/sentinel-reactor-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/reactor/EntryConfig.java +++ b/sentinel-adapter/sentinel-reactor-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/reactor/EntryConfig.java @@ -44,6 +44,10 @@ public class EntryConfig { this(resourceName, entryType, 1, new Object[0], contextConfig); } + public EntryConfig(String resourceName, EntryType entryType, int acquireCount, Object[] args) { + this(resourceName, entryType, acquireCount, args, null); + } + public EntryConfig(String resourceName, EntryType entryType, int acquireCount, Object[] args, ContextConfig contextConfig) { AssertUtil.assertNotBlank(resourceName, "resourceName cannot be blank");