Separate out {From,To}ByteBufMapper
[controller.git] / atomix-storage / src / main / java / io / atomix / storage / journal / JournalSegmentWriter.java
index 9b083bba0636ec756fbd01f8a0497b31b8c05334..75c8e25b459c224fd362c86e0fbb057a362bb1c6 100644 (file)
@@ -74,7 +74,7 @@ final class JournalSegmentWriter {
      * @param entry the entry
      * @return the entry size, or {@code null} if segment has no space
      */
-    <T> @Nullable Integer append(final ByteBufMapper<T> mapper, final T entry) {
+    <T> @Nullable Integer append(final ToByteBufMapper<T> mapper, final T entry) {
         // we are appending at this index and position
         final long index = nextIndex();
         final int position = currentPosition;