Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2017-09-05 16:41:02 -0400
committerDonald Dunne2017-09-05 18:43:18 -0400
commit2aecc301472caf4b7b06820c5b317e780dc597de (patch)
tree472cb9b64333ddfe8ed1e4854dfd7735dfe9d8f7
parent6bd1b46fb55613fbae9e23843b90ab816624a5e6 (diff)
downloadorg.eclipse.osee-2aecc301472caf4b7b06820c5b317e780dc597de.tar.gz
org.eclipse.osee-2aecc301472caf4b7b06820c5b317e780dc597de.tar.xz
org.eclipse.osee-2aecc301472caf4b7b06820c5b317e780dc597de.zip
bug[ats_TW1942]: ATS cacheupdate should return immediately
-rw-r--r--plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java2
-rw-r--r--plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java13
2 files changed, 12 insertions, 3 deletions
diff --git a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java
index e5695286b7d..b9609dc986b 100644
--- a/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java
+++ b/plugins/org.eclipse.osee.ats.api/src/org/eclipse/osee/ats/api/config/AtsConfigEndpointApi.java
@@ -51,7 +51,7 @@ public interface AtsConfigEndpointApi {
@GET
@Path("clearcache")
@Produces(MediaType.APPLICATION_JSON)
- public AtsConfigurations clearCaches();
+ public String clearCaches();
/**
* @return html5 action entry page
diff --git a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java
index d7ecb28fb7d..9f00cdad4d3 100644
--- a/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java
+++ b/plugins/org.eclipse.osee.ats.rest/src/org/eclipse/osee/ats/rest/internal/config/AtsConfigEndpointImpl.java
@@ -296,9 +296,18 @@ public final class AtsConfigEndpointImpl implements AtsConfigEndpointApi {
@GET
@Path("clearcache")
@Produces(MediaType.APPLICATION_JSON)
- public AtsConfigurations clearCaches() {
+ public String clearCaches() {
atsConfigurations = null;
- return get();
+ Thread thread = new Thread() {
+
+ @Override
+ public void run() {
+ super.run();
+ get();
+ }
+ };
+ thread.start();
+ return "Complete";
}
@GET

Back to the top