Interface AmqpObjectTypeDelegate

All Known Implementing Classes:
AmqpSerializedObjectDelegate, AmqpTypedObjectDelegate

public interface AmqpObjectTypeDelegate
Interface for a Delegate object that handles storing and retrieving the Object value in an Object message.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Copy the internal data into the given instance.
    Read a Serialized object from the AMQP message using the strategy implemented by this delegate.
    boolean
     
    boolean
     
    void
    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
    Given a serializable instance, store the value into the AMQP message using the strategy implemented by this delegate.
  • Method Details

    • setObject

      void setObject(Serializable value) throws 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:
      IOException - if an error occurs during the store operation.
    • getObject

      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:
      IOException - if an error occurs while reading the stored object.
      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 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:
      Exception - if an error occurs while copying the contents to the target.
    • isAmqpTypeEncoded

      boolean isAmqpTypeEncoded()
    • hasBody

      boolean hasBody()