Commits

Samuel Le Berrigaud committed 25e7c83

Updating to 2.4-m1 of atlassian-util-concurrent, including the new Promise interface.

Change-Id: I0c75d03fa0f92e835358bc2a1d0f52bcfcfa2492

  • Participants
  • Parent commits 3b896f9

Comments (0)

Files changed (50)

api/src/main/java/com/atlassian/labs/remoteapps/api/service/cache/BulkPromise.java

 package com.atlassian.labs.remoteapps.api.service.cache;
 
-import com.atlassian.labs.remoteapps.api.Promise;
+import com.atlassian.util.concurrent.Promise;
 
 import java.util.concurrent.TimeUnit;
 

api/src/main/java/com/atlassian/labs/remoteapps/api/service/cache/PluginCache.java

 package com.atlassian.labs.remoteapps.api.service.cache;
 
-import com.atlassian.labs.remoteapps.api.Promise;
+import com.atlassian.util.concurrent.Promise;
 
 import java.util.Map;
 

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluenceAdminClient.java

 package com.atlassian.labs.remoteapps.api.service.confluence;
 
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.ServerInfo;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 import java.io.InputStream;
 

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluenceAttachmentClient.java

 
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.Attachment;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.MutableAttachment;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 import java.io.InputStream;
 

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluenceBlogClient.java

 import com.atlassian.labs.remoteapps.api.service.confluence.domain.BlogEntry;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.BlogEntrySummary;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.MutableBlogEntry;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 /**
  */

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluenceLabelClient.java

 import com.atlassian.labs.remoteapps.api.service.confluence.domain.MutableLabel;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.SearchResult;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.Space;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 /**
  */

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluenceNotificationClient.java

 
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.ContentType;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.User;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 /**
  */

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluencePageClient.java

 import com.atlassian.labs.remoteapps.api.service.confluence.domain.RenderOptions;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.SearchOptions;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.SearchResult;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 /**
  *

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluenceSpaceClient.java

 import com.atlassian.labs.remoteapps.api.service.confluence.domain.Space;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.SpacePermission;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.SpaceSummary;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 import java.io.InputStream;
 

api/src/main/java/com/atlassian/labs/remoteapps/api/service/confluence/ConfluenceUserClient.java

 import com.atlassian.labs.remoteapps.api.service.confluence.domain.MutableUserInformation;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.User;
 import com.atlassian.labs.remoteapps.api.service.confluence.domain.UserInformation;
-import com.atlassian.labs.remoteapps.api.Promise;
 import com.atlassian.labs.remoteapps.spi.util.RequirePermission;
+import com.atlassian.util.concurrent.Promise;
 
 /**
  */

api/src/main/java/com/atlassian/labs/remoteapps/api/service/http/HostXmlRpcClient.java

 package com.atlassian.labs.remoteapps.api.service.http;
 
-import com.atlassian.labs.remoteapps.api.Promise;
+import com.atlassian.util.concurrent.Promise;
 
 /**
  * Makes xml-rpc calls to the host using the {@link HostHttpClient}

concurrent/pom.xml

 
     <dependencies>
         <dependency>
+            <groupId>com.atlassian.util.concurrent</groupId>
+            <artifactId>atlassian-util-concurrent</artifactId>
+        </dependency>
+        <dependency>
             <groupId>com.google.guava</groupId>
             <artifactId>guava</artifactId>
             <scope>compile</scope>