Interface IDfMessage

All Superinterfaces:
IDfTypedObject

public interface IDfMessage extends IDfTypedObject
Created by IntelliJ IDEA. User: fanz Date: March 18, 2011 Time: 3:13:59 PM To change this template use File | Settings | File Templates.
  • Field Details

  • Method Details

    • getCreationTime

      IDfTime getCreationTime() throws DfException
      Returns the message reation time.
      Returns:
      The message creation time.
      Throws:
      DfException - if a server error occurs
    • getUpdateTime

      IDfTime getUpdateTime() throws DfException
      Returns the last state change time of the message.
      Returns:
      The last state change time of the message.
      Throws:
      DfException - if a server error occurs
    • getExpirationTime

      IDfTime getExpirationTime() throws DfException
      Returns the message expiration time.
      Returns:
      The nessage expiration time.
      Throws:
      DfException - if a server error occurs
    • getState

      int getState() throws DfException
      Returns the message state.
      Returns:
      The message state.
      Throws:
      DfException - if a server error occurs
    • getPriority

      int getPriority() throws DfException
      Returns the message priority.
      Returns:
      The message priority.
      Throws:
      DfException - if a server error occurs
    • getAcquiredBy

      String getAcquiredBy() throws DfException
      Returns the name of the user who has acquired the message.

      Meaningful only when message is in acquired state.

      Returns:
      The name of the user who has acquired the message.
      Throws:
      DfException - if a server error occurs
    • getRedeliveryCount

      int getRedeliveryCount() throws DfException
      Returns the message redelivery count
      Returns:
      The message redelivery count
      Throws:
      DfException - if a server error occurs
    • getErrorDescription

      String getErrorDescription() throws DfException
      Returns text description as for why the message delivery has failed.

      Notice that such a text description is available only after the message delivery fails.

      Returns:
      A text description as for why the message delivery has failed.
      Throws:
      DfException - if a server error occurs
    • getSender

      String getSender() throws DfException
      Returns the message sender.
      Returns:
      The message sender.
      Throws:
      DfException - if a server error occurs
    • getRecipient

      String getRecipient() throws DfException
      Returns the message recipient.
      Returns:
      The message recipient.
      Throws:
      DfException - if a server error occurs
    • setCreationTime

      void setCreationTime(IDfTime time) throws DfException
      Sets the message creation time.
      Parameters:
      time - A value of type IDfTime
      Throws:
      DfException - if a server error occurs
    • setUpdateTime

      void setUpdateTime(IDfTime time) throws DfException
      Sets the message state update time.
      Parameters:
      time - A value of type IDfTime
      Throws:
      DfException - if a server error occurs
    • setState

      void setState(int state) throws DfException
      Sets the message state.
      Parameters:
      state - An integer value between 1 and 4
      Throws:
      DfException - if a server error occurs
    • setPriority

      void setPriority(int priority) throws DfException
      Sets the message priority.
      Parameters:
      priority - An integer value between 0 anf 10
      Throws:
      DfException - if a server error occurs
    • setExpirationTime

      void setExpirationTime(IDfTime expirationTime) throws DfException
      Sets the message expiration time.
      Parameters:
      expirationTime - An value of type IDfTime
      Throws:
      DfException - if a server error occurs
    • setRedeliveryCount

      void setRedeliveryCount(int count) throws DfException
      Sets the message redelivery count.
      Parameters:
      count - A non-negative integer not greater than the value of dmc_mq_config.max_redeliveries
      Throws:
      DfException - if a server error occurs
    • setErrorDescription

      void setErrorDescription(String description) throws DfException
      Sets error description in attribute 'msg_error_description'.
      Parameters:
      description - A text string describing why the message delivery fails.
      Throws:
      DfException - if a server error occurs
    • setSender

      void setSender(String sender) throws DfException
      Sets the message sender.
      Parameters:
      sender - The message sender
      Throws:
      DfException - if a server error occurs
    • setRecipient

      void setRecipient(String recipient) throws DfException
      Sets the message recepient.
      Parameters:
      recipient - The message recipient
      Throws:
      DfException - if a server error occurs
    • getMessageId

      IDfId getMessageId() throws DfException
      Returns the message object id.
      Throws:
      DfException - if a server error occurs
    • save

      void save() throws DfException
      Add the message to the queue. This causes the message to be persisted in the underlying database.
      Throws:
      DfException - if a server error occurs