Skip to content

Commit

Permalink
Update documentation (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshu42 authored Oct 31, 2022
1 parent 09892e0 commit a227b3b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/docs/MessageStreamAdapters.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ class MyCustomMessageAdapterFactory : MessageAdapter.Factory {

private class MyCustomMessageAdapter<T> constructor() : MessageAdapter<T> {

override fun fromMessage(message: Message): T {
override fun fromMessage(topic: String, message: Message): T {
// convert message to custom type
}

override fun toMessage(data: T): Message {
override fun toMessage(topic: String, data: T): Message {
// convert custom type to message
}

override fun contentType(): String {
// content-type supported by this adapter.
}
}
~~~

Expand Down

0 comments on commit a227b3b

Please sign in to comment.