Package com.documentum.fc.client.mq
Interface IDfMessage
- All Superinterfaces:
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 Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the user who has acquired the message.Returns the message reation time.Returns text description as for why the message delivery has failed.Returns the message expiration time.Returns the message object id.intReturns the message priority.Returns the message recipient.intReturns the message redelivery countReturns the message sender.intgetState()Returns the message state.Returns the last state change time of the message.voidsave()Add the message to the queue.voidsetCreationTime(IDfTime time) Sets the message creation time.voidsetErrorDescription(String description) Sets error description in attribute 'msg_error_description'.voidsetExpirationTime(IDfTime expirationTime) Sets the message expiration time.voidsetPriority(int priority) Sets the message priority.voidsetRecipient(String recipient) Sets the message recepient.voidsetRedeliveryCount(int count) Sets the message redelivery count.voidSets the message sender.voidsetState(int state) Sets the message state.voidsetUpdateTime(IDfTime time) Sets the message state update time.Methods inherited from interface com.documentum.fc.client.IDfTypedObject
appendBoolean, appendDouble, appendId, appendInt, appendString, appendTime, appendValue, dump, enumAttrs, findAttrIndex, findBoolean, findDouble, findId, findInt, findString, findTime, findValue, getAllRepeatingStrings, getAttr, getAttrCount, getAttrDataType, getBoolean, getDouble, getId, getInt, getLong, getObjectId, getObjectSession, getOriginalSession, getRepeatingBoolean, getRepeatingDouble, getRepeatingId, getRepeatingInt, getRepeatingLong, getRepeatingString, getRepeatingTime, getRepeatingValue, getSession, getSessionManager, getString, getTime, getValue, getValueAt, getValueCount, hasAttr, insertBoolean, insertDouble, insertId, insertInt, insertString, insertTime, insertValue, isAttrRepeating, isNull, remove, removeAll, setBoolean, setDouble, setId, setInt, setNull, setRepeatingBoolean, setRepeatingDouble, setRepeatingId, setRepeatingInt, setRepeatingString, setRepeatingTime, setRepeatingValue, setSessionManager, setString, setTime, setValue, truncate
-
Field Details
-
MSG_STATE_READY_STRING
- See Also:
-
MSG_STATE_ACQUIRED_STRING
- See Also:
-
MSG_STATE_DEAD_STRING
- See Also:
-
MSG_STATE_UNKNOWN_STRING
- See Also:
-
MSG_STATE_READY
static final int MSG_STATE_READY- See Also:
-
MSG_STATE_ACQUIRED
static final int MSG_STATE_ACQUIRED- See Also:
-
MSG_STATE_DEAD
static final int MSG_STATE_DEAD- See Also:
-
MSG_STATE_UNKNOWN
static final int MSG_STATE_UNKNOWN- See Also:
-
MSG_DEFAULT_PRIORITY
static final int MSG_DEFAULT_PRIORITY- See Also:
-
MSG_DEFAULT_REDELIVERY_COUNT
static final int MSG_DEFAULT_REDELIVERY_COUNT- See Also:
-
-
Method Details
-
getCreationTime
Returns the message reation time.- Returns:
- The message creation time.
- Throws:
DfException- if a server error occurs
-
getUpdateTime
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
Returns the message expiration time.- Returns:
- The nessage expiration time.
- Throws:
DfException- if a server error occurs
-
getState
Returns the message state.- Returns:
- The message state.
- Throws:
DfException- if a server error occurs
-
getPriority
Returns the message priority.- Returns:
- The message priority.
- Throws:
DfException- if a server error occurs
-
getAcquiredBy
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
Returns the message redelivery count- Returns:
- The message redelivery count
- Throws:
DfException- if a server error occurs
-
getErrorDescription
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
Returns the message sender.- Returns:
- The message sender.
- Throws:
DfException- if a server error occurs
-
getRecipient
Returns the message recipient.- Returns:
- The message recipient.
- Throws:
DfException- if a server error occurs
-
setCreationTime
Sets the message creation time.- Parameters:
time- A value of type IDfTime- Throws:
DfException- if a server error occurs
-
setUpdateTime
Sets the message state update time.- Parameters:
time- A value of type IDfTime- Throws:
DfException- if a server error occurs
-
setState
Sets the message state.- Parameters:
state- An integer value between 1 and 4- Throws:
DfException- if a server error occurs
-
setPriority
Sets the message priority.- Parameters:
priority- An integer value between 0 anf 10- Throws:
DfException- if a server error occurs
-
setExpirationTime
Sets the message expiration time.- Parameters:
expirationTime- An value of type IDfTime- Throws:
DfException- if a server error occurs
-
setRedeliveryCount
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
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
Sets the message sender.- Parameters:
sender- The message sender- Throws:
DfException- if a server error occurs
-
setRecipient
Sets the message recepient.- Parameters:
recipient- The message recipient- Throws:
DfException- if a server error occurs
-
getMessageId
Returns the message object id.- Throws:
DfException- if a server error occurs
-
save
Add the message to the queue. This causes the message to be persisted in the underlying database.- Throws:
DfException- if a server error occurs
-