Skip to content

Instantly share code, notes, and snippets.

@galderz
Created June 27, 2018 11:30
Show Gist options
  • Save galderz/c26fd1730778ffd2105be4302c3aa9a7 to your computer and use it in GitHub Desktop.
Save galderz/c26fd1730778ffd2105be4302c3aa9a7 to your computer and use it in GitHub Desktop.
RemoteCacheManager remote = …
SerializationContext serialCtx =
ProtoStreamMarshaller.getSerializationContext(remote);
ProtoSchemaBuilder protoSchemaBuilder = new ProtoSchemaBuilder();
String protoFile = protoSchemaBuilder
.fileName(fileName)
.addClass(Pokemon.class)
.packageName("pokemons")
.build(serialCtx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment