Rename DataJournalEntrySerializer 27/109527/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 31 Dec 2023 14:39:50 +0000 (15:39 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 31 Dec 2023 14:41:22 +0000 (15:41 +0100)
DataJournalEntrySerdes is the proper name, use that.

JIRA: CONTROLLER-2089
Change-Id: I53247f7b226ed7ab0ff42ac24ad6f4d549e5db97
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-akka-segmented-journal/src/main/java/org/opendaylight/controller/akka/segjournal/DataJournalEntrySerdes.java [moved from opendaylight/md-sal/sal-akka-segmented-journal/src/main/java/org/opendaylight/controller/akka/segjournal/DataJournalEntrySerializer.java with 94% similarity]
opendaylight/md-sal/sal-akka-segmented-journal/src/main/java/org/opendaylight/controller/akka/segjournal/DataJournalV0.java

@@ -32,10 +32,10 @@ import org.opendaylight.controller.akka.segjournal.DataJournalEntry.ToPersistenc
  * around a {@link PersistentRepr}, while {@link #read(EntryInput)} produces an {@link FromPersistence}, which
  * needs further processing to reconstruct a {@link PersistentRepr}.
  */
-final class DataJournalEntrySerializer implements EntrySerdes<DataJournalEntry> {
+final class DataJournalEntrySerdes implements EntrySerdes<DataJournalEntry> {
     private final ExtendedActorSystem actorSystem;
 
-    DataJournalEntrySerializer(final ActorSystem actorSystem) {
+    DataJournalEntrySerdes(final ActorSystem actorSystem) {
         this.actorSystem = requireNonNull((ExtendedActorSystem) actorSystem);
     }
 
index 20761c32416558d43f28eb32cf05d28edea92301..bef2121470761cfa8f9c410b814a9f3d5a37e67d 100644 (file)
@@ -41,7 +41,7 @@ final class DataJournalV0 extends DataJournal {
         entries = SegmentedJournal.<DataJournalEntry>builder()
                 .withStorageLevel(storage).withDirectory(directory).withName("data")
                 .withNamespace(JournalSerdes.builder()
-                    .register(new DataJournalEntrySerializer(system), FromPersistence.class, ToPersistence.class)
+                    .register(new DataJournalEntrySerdes(system), FromPersistence.class, ToPersistence.class)
                     .build())
                 .withMaxEntrySize(maxEntrySize).withMaxSegmentSize(maxSegmentSize)
                 .build();