-
Notifications
You must be signed in to change notification settings - Fork 4
Story/cite 132 1 #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sathish2379
wants to merge
17
commits into
develop
Choose a base branch
from
story/CITE-132-1
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+85
−13
Open
Story/cite 132 1 #267
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
80c7f99
[CITE-132] Addressing review comments-Implementing future cancel changes
Charishma0249 3a42c7b
[CITE-132]Addressing review comments-implementing java future cancel job
Charishma0249 65d89c3
[CITE-132] Addressed review comments - code cleanup
Charishma0249 53fefbb
Merge branch 'develop' into story/CITE-132-1
sathish2379 2f0a2fc
[CITE-132] update cancel method return and updated cancel check in Sy…
sathish2379 3d493f8
[CITE-132] Using concurrent Hashmap for storing future
sathish2379 2e5c969
[CITE 132] Removed Sysout statements
sathish2379 10d9352
[CITE 132] removed extra spaces, tabs
sathish2379 03e5ec3
[CITE 132] spaces fixes
sathish2379 d36fdad
[CITE 132] spaces fixes
sathish2379 b80eb69
[CITE-132] refactor CheckIfInterrupted method
sathish2379 1b033b9
[CITE-132] cancelling of job is not required in getGroupItems
sathish2379 55723b7
[CITE-132] cancelling job within sync
sathish2379 706db11
[CITE-132] correcting indentations
sathish2379 c421f37
[CITE-132] Handle race condition for sync
rajvi-patel-22 1ff5c11
[CITE-132] Comment out code to check race condition
rajvi-patel-22 a64b7d3
Merge branch 'develop' into story/CITE-132-1
rajvi-patel-22 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 3 additions & 1 deletion
4
citesphere/src/main/java/edu/asu/diging/citesphere/core/service/IAsyncCitationProcessor.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package edu.asu.diging.citesphere.core.service; | ||
|
||
import java.util.concurrent.Future; | ||
|
||
import edu.asu.diging.citesphere.core.exceptions.ZoteroHttpStatusException; | ||
import edu.asu.diging.citesphere.user.IUser; | ||
|
||
public interface IAsyncCitationProcessor { | ||
|
||
void sync(IUser user, String groupId, long contentVersion, String collectionId) throws ZoteroHttpStatusException; | ||
Future<String> sync(IUser user, String groupId, long contentVersion, String collectionId) throws ZoteroHttpStatusException; | ||
|
||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, now that I'm looking at this again, you will want to cancel the thread within the
syncCitations
and probably alsosyncCollections
method. They are the long running methods that need to be cancelled if cancellation was requested. Otherwise, if there are 1000 citations to sync it would still go through all of them before cancelling.