Interface AmqpObjectTypeDelegate

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void copyInto​(AmqpObjectTypeDelegate copy)
      Copy the internal data into the given instance.
      java.io.Serializable getObject()
      Read a Serialized object from the AMQP message using the strategy implemented by this delegate.
      boolean hasBody()  
      boolean isAmqpTypeEncoded()  
      void onSend()
      Signals that the message is about to be sent so we should ensure proper state of the marshaled object and message annotations prior to that.
      void setObject​(java.io.Serializable value)
      Given a serializable instance, store the value into the AMQP message using the strategy implemented by this delegate.
    • Method Detail

      • setObject

        void setObject​(java.io.Serializable value)
                throws java.io.IOException
        Given a serializable instance, store the value into the AMQP message using the strategy implemented by this delegate.
        Parameters:
        value - A serializable object instance to be stored in the message.
        Throws:
        java.io.IOException - if an error occurs during the store operation.
      • getObject

        java.io.Serializable getObject()
                                throws java.io.IOException,
                                       java.lang.ClassNotFoundException
        Read a Serialized object from the AMQP message using the strategy implemented by this delegate.
        Returns:
        an Object that has been read from the stored object data in the message.
        Throws:
        java.io.IOException - if an error occurs while reading the stored object.
        java.lang.ClassNotFoundException - if no class can be found for the stored type.
      • onSend

        void onSend()
        Signals that the message is about to be sent so we should ensure proper state of the marshaled object and message annotations prior to that.
      • copyInto

        void copyInto​(AmqpObjectTypeDelegate copy)
               throws java.lang.Exception
        Copy the internal data into the given instance.
        Parameters:
        copy - the new delegate that will receive a copy of this instances object data.
        Throws:
        java.lang.Exception - if an error occurs while copying the contents to the target.
      • isAmqpTypeEncoded

        boolean isAmqpTypeEncoded()
      • hasBody

        boolean hasBody()