Skip to content

Commit 08c0fcc

Browse files
committed
Document BatchStorer.Default implementation, highlighting synchronization and background flush process.
1 parent 56325a4 commit 08c0fcc

File tree

1 file changed

+7
-0
lines changed
  • persistence/persistence/src/main/java/org/eclipse/serializer/persistence/util

1 file changed

+7
-0
lines changed

persistence/persistence/src/main/java/org/eclipse/serializer/persistence/util/BatchStorer.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ public static BatchStorer New(final Storer delegate, final Controller controller
173173
}
174174

175175

176+
/**
177+
* Default implementation of {@link BatchStorer}.
178+
* <p>
179+
* All store operations are synchronized to ensure thread safety.
180+
* A background daemon thread periodically checks for pending data
181+
* and flushes it according to the configured {@link Controller}.
182+
*/
176183
public static class Default implements BatchStorer
177184
{
178185
private final static Logger logger = Logging.getLogger(BatchStorer.class);

0 commit comments

Comments
 (0)