You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

Eric J.12's avatar
Eric J.12
Explorer | Level 4
9 years ago

Abort call to listFolderLongpoll() in Java SDK

Hi, I was wondering if there is a way to abort a call to the /list_folder/longpoll endpoint in Java. I was using this method in DbxUserFilesRequests:

listFolderLongpoll(String cursor)

 

The issues is that I have a thread that calls this method, but when this thread is interrupted, I want to abort this poll, and have the new thread start polling for changes in the same location. Currently, I'm working around this by making a closeable HTTP call to the endpoint, but I am wondering if you plan to add this kind of functionality to the Java SDK or if it already exists. Thank you.

  • No, unfortunately that's not built in to the SDK, but I'll be sure to pass this along as a feature request.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    No, unfortunately that's not built in to the SDK, but I'll be sure to pass this along as a feature request.
    • FJBDev's avatar
      FJBDev
      Helpful | Level 5

      Is that implemented yet ? or is it on the roadmap ?

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        FJBDev I don't have any update on this request, and I'm not aware of any current plans to implement it. 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,915 PostsLatest Activity: 4 hours ago
333 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!