diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar index 6480942..a2ca8b0 100644 Binary files a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar and b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar differ diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.md5 b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.md5 index 90e3242..f3528af 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.md5 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.md5 @@ -1 +1 @@ -2e409bc6c8a8db39c27753710d29143b \ No newline at end of file +d8db1f317831d55db677e9194c857f3e \ No newline at end of file diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.sha1 b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.sha1 index 1c705b6..a80aa0d 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.sha1 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-javadoc.jar.sha1 @@ -1 +1 @@ -8d8f9988501de6c55cbcfeaaca903b7eaa5ad6e2 \ No newline at end of file +45132b334ff172483c004396e0bbd82503287f2d \ No newline at end of file diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar index d77ca51..ec67af1 100644 Binary files a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar and b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar differ diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.md5 b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.md5 index 804d40a..e15b7fd 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.md5 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.md5 @@ -1 +1 @@ -0d1b37f9977393a6d003731c11be9183 \ No newline at end of file +94b9fd1d1e2199820961f4b8acde96dc \ No newline at end of file diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.sha1 b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.sha1 index 39e04e8..9bcd7e2 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.sha1 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2-sources.jar.sha1 @@ -1 +1 @@ -6cc7b92f336a7b6c6e9e52a94f5bbaf8f28cd945 \ No newline at end of file +4c47d65f086216a8b872d0543b917c8ba9de9b27 \ No newline at end of file diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar index daae5e5..50d0b5b 100644 Binary files a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar and b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar differ diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.md5 b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.md5 index 5d4e4fd..2711d4a 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.md5 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.md5 @@ -1 +1 @@ -199b5bbde92e70dd0cbd2fb3d081237d \ No newline at end of file +25390613b3a78c73db4f897dde61ccc5 \ No newline at end of file diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.sha1 b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.sha1 index 77b7b36..4de57f4 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.sha1 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/1.1.2/ffc-java-server-sdk-1.1.2.jar.sha1 @@ -1 +1 @@ -82bed758ad8da18faddad63b724b7f28ed2c45a6 \ No newline at end of file +df53ef1170b20e9bb2ff0a764e3050dc43030f05 \ No newline at end of file diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml b/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml index 0725f8c..c4b9e1e 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml @@ -10,6 +10,6 @@ 1.1.1 1.1.2 - 20220907052401 + 20220910071935 diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.md5 b/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.md5 index 79b750b..7a87b4c 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.md5 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.md5 @@ -1 +1 @@ -ebe31dcc3d0612046e81250923e93e60 \ No newline at end of file +fbf190e814384b01d2833e7510367d9f \ No newline at end of file diff --git a/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.sha1 b/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.sha1 index e2cbeff..7fc4ec7 100644 --- a/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.sha1 +++ b/maven-repo/co/featureflags/ffc-java-server-sdk/maven-metadata.xml.sha1 @@ -1 +1 @@ -35664eb24d09000d73cb7c2cd53bcce44fd8aace \ No newline at end of file +a6feec0899e895fb565aadbe52658dcddaacff7d \ No newline at end of file diff --git a/src/main/java/co/featureflags/server/Insights.java b/src/main/java/co/featureflags/server/Insights.java index b9850ac..51b2176 100644 --- a/src/main/java/co/featureflags/server/Insights.java +++ b/src/main/java/co/featureflags/server/Insights.java @@ -141,7 +141,7 @@ boolean isEmpty() { private final static class FlushPayloadRunner implements Runnable { - private final static int MAX_EVENT_SIZE_PER_REQUEST = 100; + private final static int MAX_EVENT_SIZE_PER_REQUEST = 50; private final InsightTypes.InsightConfig config; @@ -190,7 +190,7 @@ public void run() { } public void stop() { - running.set(true); + running.set(false); thread.interrupt(); Loggers.EVENTS.debug("flush payload worker is stopping..."); } @@ -308,7 +308,7 @@ private void triggerFlush() { // busy payload worker - 1 synchronized (busyFlushPayloadThreadNum) { busyFlushPayloadThreadNum.decrementAndGet(); - busyFlushPayloadThreadNum.notify(); + busyFlushPayloadThreadNum.notifyAll(); } } } diff --git a/src/main/java/co/featureflags/server/Utils.java b/src/main/java/co/featureflags/server/Utils.java index 194629c..d65f900 100644 --- a/src/main/java/co/featureflags/server/Utils.java +++ b/src/main/java/co/featureflags/server/Utils.java @@ -26,7 +26,7 @@ public abstract class Utils { public static Iterable> defaultHeaders(String envSecret) { return ImmutableMap.of("envSecret", envSecret, - "User-Agent", "ffc-java-server-sdk4", + "User-Agent", "fb-java-server-sdk", "Content-Type", "application/json") .entrySet(); }