Interface MessageSerializer<M>

All Known Implementing Classes:
AbstractGraphSONMessageSerializerV4, AbstractMessageSerializer, GraphBinaryMessageSerializerV4, GraphSONMessageSerializerV4, GraphSONUntypedMessageSerializerV4, TextPlainMessageSerializer

public interface MessageSerializer<M>
Serializes data to and from Gremlin Server. Typically, the object being serialized or deserialized will be an item from an Iterator as returned from the ScriptEngine or an incoming RequestMessage. MessageSerializer instances are instantiated to a cache via ServiceLoader and indexed based on the mime types they support. If a mime type is supported more than once, the first MessageSerializer instance loaded for that mime type is assigned. If a mime type is not found the server default is chosen. The default may change from version to version so it is best to not rely on it when developing applications and to always be explicit in specifying the type you wish to bind to.
Author:
Stephen Mallette (http://stephen.genoprime.com)