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 implementations are not discovered automatically (there is no ServiceLoader lookup). Gremlin Server and the driver each instantiate the implementation named by its fully qualified class name in their configuration, using reflection and its public no-argument constructor. Gremlin Server indexes the configured instances based on the mime types they support. If a mime type is supported more than once, the first configured MessageSerializer 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)