Last active
August 24, 2020 13:27
-
-
Save jklukas/a76968ecf07bb699bb6fd1cf0565b2ca to your computer and use it in GitHub Desktop.
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
/* Example of a custom class with automatically generated Coder */ | |
@DefaultSchema(AutoValueSchema.class) | |
@AutoValue | |
abstract static class MyMessage { | |
public static MyMessage of(byte[] payload, Map<String, String> attributes) { | |
return new AutoValue_MyMessage(paylod, attributes); | |
} | |
public abstract byte[] getPayload(); | |
public abstract Map<String, String> getAttributes(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment