-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
61 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...ith-entities-2nd-call/src/main/java/com/mycompany/myapp/service/kafka/serde/FooSerde.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.mycompany.myapp.service.kafka.serde; | ||
|
||
import org.apache.kafka.common.serialization.Deserializer; | ||
import org.apache.kafka.common.serialization.Serde; | ||
import org.apache.kafka.common.serialization.Serializer; | ||
|
||
import java.util.Map; | ||
|
||
import com.mycompany.myapp.service.kafka.serde.FooSerializer; | ||
import com.mycompany.myapp.service.kafka.serde.FooDeserializer; | ||
|
||
public class FooSerde<Foo> implements Serde<Foo> { | ||
private final Serializer serializer = new FooSerializer(); | ||
private final Deserializer deserializer = new FooDeserializer(); | ||
|
||
@Override | ||
public void configure(Map<String, ?> configs, boolean isKey) { | ||
this.serializer.configure(configs, isKey); | ||
this.deserializer.configure(configs, isKey); | ||
} | ||
|
||
@Override | ||
public void close() { | ||
this.serializer.close(); | ||
this.deserializer.close(); | ||
} | ||
|
||
@Override | ||
public Serializer<Foo> serializer() { | ||
return serializer; | ||
} | ||
|
||
@Override | ||
public Deserializer<Foo> deserializer() { | ||
return deserializer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters