Skip to content

Commit

Permalink
add javadoc note that class is thread safe
Browse files Browse the repository at this point in the history
  • Loading branch information
pwinckles committed Mar 4, 2024
1 parent 0f8cece commit 0aace04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@

/**
* Exposes methods for selectively updating a specific OCFL object.
* <p>
* Implementations are thread safe, and you can concurrently use the same updater to add multiple files to the same
* object version.
*/
public interface OcflObjectUpdater {

Expand All @@ -42,7 +45,7 @@ public interface OcflObjectUpdater {
* it's a directory, the contents of the directory are inserted into the object's root.
*
* <p>By default, files are copied into the OCFL repository. If {@link OcflOption#MOVE_SOURCE} is specified, then
* files will be moved instead. Warning: If an exception occurs and the new version is not created, the files that were
* files will be moved instead. Warning: If an exception occurs and the new version is not created, the files that
* will be lost. This operation is more efficient but less safe than the default copy.
*
* <p>By default, the change will be rejected if there is an existing file in an object at a logical path.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@

/**
* Default implementation of OcflObjectUpdater that is used by DefaultOcflRepository to provide write access to an object.
* <p>
* This class is thread safe, and you can concurrently use the same updater to add multiple files to the same
* object version.
*/
public class DefaultOcflObjectUpdater implements OcflObjectUpdater {

Expand Down

0 comments on commit 0aace04

Please sign in to comment.