com.tinkerpop.rexster.protocol.serializer.RexProSerializer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rexster-protocol Show documentation
Show all versions of rexster-protocol Show documentation
RexPro is a binary protocol for Rexster graph server.
package com.tinkerpop.rexster.protocol.serializer;
import com.tinkerpop.rexster.protocol.msg.RexProMessage;
import java.io.IOException;
/**
* RexPro serializer interface. Use this to implement new serializers
*
* @author Blake Eggleston (bdeggleston.github.com)
*/
public interface RexProSerializer {
/**
* Consumes a byte array and RexProMessage class and returns a RexProMessage instance
*
* @param bytes
* @param messageClass
* @param
* @return
*/
public Message deserialize(byte[] bytes, Class messageClass) throws IOException;
/**
* Consumes a RexProMessage and returns a byte array
*
* @param message
* @param
* @return
*/
public byte[] serialize(Message message, Class messageClass) throws IOException;
/**
* Returns the byte uniquely identifying this serializer
* @return
*/
public byte getSerializerId();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy