Hotrod is a binary protocol so the object passed in by the user are being marshalled into a binary format using an implementation of this interface. Users can implement this interface and develop their own marshaller without using the default marshaller.