Interface SerializationService

  • All Known Implementing Classes:
    JDKSerializationService

    public interface SerializationService
    Serialization interface for de~/serialize the AbstractEvents in a cluster environment.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object deserialize​(byte[] bytes)
      Deserialize the given byte array into the corresponding object which was serialized before.
      byte[] serialize​(java.lang.Object object)
      Serialize the given object.
    • Method Detail

      • serialize

        byte[] serialize​(java.lang.Object object)
        Serialize the given object.
        Throws:
        org.apache.commons.lang.SerializationException - if a serialization problem occurs
      • deserialize

        java.lang.Object deserialize​(byte[] bytes)
        Deserialize the given byte array into the corresponding object which was serialized before.
        Parameters:
        bytes - the byte array
        Returns:
        an object wich was serialized