Package com.documentum.fc.client.mq
Interface IDfMessageQueueConfig
public interface IDfMessageQueueConfig
Created by IntelliJ IDEA. User: fanz Date: Oct 19, 2010 Time: 10:13:26 AM To change this template use File | Settings
| File Templates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final booleanstatic final Stringstatic final int -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells whether the specified user has permission to browse messages of the queue.booleancanConsume(String userName) Tells whether the specified user gas permission to comsume messages of the queue.booleancanProduce(String userName) Tells whether the specified user has permission to add messages to the queue.intReturns the value of property 'default_priority'.intReturns the value of property 'delivery_timeout'.intReturns the value of property 'expiration_interval'.intReturns the value of property 'max_redeliveries'.Returns the value of property 'queue_name'.booleanReturns the value of property 'retain_dead_message'.intReturns the value of property 'retain_period'.voidGrant the user the specified permission.booleanTells whether the specified user is the owner of the queue or not.voidRevoke the specified permission from the user.voidsave()Save the message queue configuration object in database.voidsetDefaultPriority(int priority) Set property 'default_priority'.voidsetDeliveryTimeout(int timeout) Set property 'delivery_timeout'.voidsetExpirationInterval(int interval) Set property 'expiration_interval'.voidsetMaxRedeliveries(int count) Set property 'max_redeliveries'.voidsetRetainDeadMessage(boolean value) Set property 'retain_dead_message'.voidsetRetainPeriod(int period) Set property 'retain_period'.
-
Field Details
-
MQ_PERM_BROWSE
static final int MQ_PERM_BROWSE- See Also:
-
MQ_PERM_PRODUCE
static final int MQ_PERM_PRODUCE- See Also:
-
MQ_PERM_CONSUME
static final int MQ_PERM_CONSUME- See Also:
-
MQ_PERM_BROWSE_STRING
- See Also:
-
MQ_PERM_PRODUCE_STRING
- See Also:
-
MQ_PERM_CONSUME_STRING
- See Also:
-
PROP_QUEUE_NAME
- See Also:
-
PROP_MAX_REDELIVERIES
- See Also:
-
PROP_RETAIN_DEAD_MESSAGE
- See Also:
-
PROP_RETAIN_PERIOD
- See Also:
-
PROP_EXPIRATION_INTERVAL
- See Also:
-
PROP_DEFAULT_PRIORITY
- See Also:
-
PROP_DELIVERY_TIMEOUT
- See Also:
-
PROP_QUEUE_USERS
- See Also:
-
PROP_PERMISSIONS
- See Also:
-
PROP_MAX_REDELIVERIES_DEFAULT
static final int PROP_MAX_REDELIVERIES_DEFAULT- See Also:
-
PROP_RETAIN_DEAD_MESSAGE_DEFAULT
static final boolean PROP_RETAIN_DEAD_MESSAGE_DEFAULT- See Also:
-
PROP_RETAIN_PERIOD_DEFAULT
static final int PROP_RETAIN_PERIOD_DEFAULT- See Also:
-
PROP_EXPIRATION_INTERVAL_DEFAULT
static final int PROP_EXPIRATION_INTERVAL_DEFAULT- See Also:
-
PROP_DEFAULT_PRIORITY_DEFAULT
static final int PROP_DEFAULT_PRIORITY_DEFAULT- See Also:
-
PROP_DELIVERY_TIMEOUT_DEFAULT
static final int PROP_DELIVERY_TIMEOUT_DEFAULT- See Also:
-
-
Method Details
-
setMaxRedeliveries
Set property 'max_redeliveries'.- Parameters:
count- The maximum message redelivery count- Throws:
DfException- if a server error occurs
-
setRetainDeadMessage
Set property 'retain_dead_message'.- Parameters:
value- A boolean value- Throws:
DfException- if a server error occurs
-
setRetainPeriod
Set property 'retain_period'.- Parameters:
period- the time period that a dead message is retained in number of minutes- Throws:
DfException- if a server error occurs
-
setExpirationInterval
Set property 'expiration_interval'.- Parameters:
interval- The time interval that a message stays in ready state in number of seconds.- Throws:
DfException- if a server error occurs
-
setDefaultPriority
Set property 'default_priority'.- Parameters:
priority- The dfeault message priority- Throws:
DfException- if a server error occurs
-
setDeliveryTimeout
Set property 'delivery_timeout'.- Parameters:
timeout- Message delivery timeout value in seconds- Throws:
DfException- if a server error occurs
-
getQueueName
Returns the value of property 'queue_name'.- Returns:
- the value of property 'queue_name'.
- Throws:
DfException- if a server error occurs
-
getMaxRedeliveries
Returns the value of property 'max_redeliveries'.- Returns:
- the value of property 'max_redeliveries'.
- Throws:
DfException- if a server error occurs
-
getRetainDeadMessage
Returns the value of property 'retain_dead_message'.- Returns:
- the value of property 'retain_dead_message'.
- Throws:
DfException- if a server error occurs
-
getRetainPeriod
Returns the value of property 'retain_period'.- Returns:
- the value of property 'retain_period'.
- Throws:
DfException- if a server error occurs
-
getExpirationInterval
Returns the value of property 'expiration_interval'.- Returns:
- the value of property 'expiration_interval'.
- Throws:
DfException- if a server error occurs
-
getDefaultPriority
Returns the value of property 'default_priority'.- Returns:
- the value of property 'default_priority'.
- Throws:
DfException- if a server error occurs
-
getDeliveryTimeout
Returns the value of property 'delivery_timeout'.- Returns:
- the value of property 'delivery_timeout'.
- Throws:
DfException- if a server error occurs
-
save
Save the message queue configuration object in database.- Throws:
DfException- if a server error occurs
-
isOwner
Tells whether the specified user is the owner of the queue or not.- Returns:
trueif the user is the queue owner,falseotherwise..- Throws:
DfException- if a server error occurs
-
canProduce
Tells whether the specified user has permission to add messages to the queue.- Returns:
trueif the user has permission to add messages to the queue,falseotherwise..- Throws:
DfException- if a server error occurs
-
canConsume
Tells whether the specified user gas permission to comsume messages of the queue.- Returns:
trueif the user has permission to consume messages of the queue,falseotherwise..- Throws:
DfException- if a server error occurs
-
canBrowse
Tells whether the specified user has permission to browse messages of the queue.- Returns:
trueif the user has permission to browse messages of the queue,falseotherwise..- Throws:
DfException- if a server error occurs
-
grant
Grant the user the specified permission. If the user already has the permission, calling this method would not do anything.- Parameters:
userName- User namepermission- Permission- Throws:
DfException- if a server error occurs
-
revoke
Revoke the specified permission from the user. If the user does not have the permission, calling this method would not do anything.- Parameters:
userName- User namepermission- Permission- Throws:
DfException- if a server error occurs
-