Skip to content

Commit

Permalink
review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-ebi committed Apr 26, 2024
1 parent 2a07f2c commit 0749b6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public interface AccessioningService<MODEL, HASH, ACCESSION> {
* stored in the repository.
*
* @param messages List of objects to be accessioned or already accessioned
* @param applicationInstanceId The id of the application(instance) that is trying to generate the accessions.
* This id will be used by the underlying Accession generator when reserving blocks for generating accessions.
* @return List of wrapper objects containing the accessioned objects and their associated accessions and hashes
* @throws AccessionCouldNotBeGeneratedException when accession could not be generated
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public synchronized long[] generateAccessions(int numAccessionsToGenerate, Strin
* Ensures that the available ranges queue hold @param totalAccessionsToGenerate or more elements
*
* @param totalAccessionsToGenerate
* @param applicationInstanceId - The id of the application(instance) that is trying to reserve the block
*/
private synchronized void reserveNewBlocksUntilSizeIs(int totalAccessionsToGenerate, String applicationInstanceId) {
while (!blockManager.hasAvailableAccessions(totalAccessionsToGenerate)) {
Expand Down

0 comments on commit 0749b6c

Please sign in to comment.