Interface MessageCodec

  • All Implemented Interfaces:

    
    public interface MessageCodec<T extends Object>
    
                        

    Interface for message codecs

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract ByteArray encode(T value) Encode a value to bytes
      abstract Result<T> decode(ByteArray data) Decode bytes to a value
      abstract String getContentType() Content type identifier for this codec
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait