Struct mimir::DeqOptions
[−]
[src]
pub struct DeqOptions { /* fields omitted */ }
Dequeue option handles are used to represent the options specified when dequeuing messages using advanced queueing.
Methods
impl Options
[src]
pub fn get_condition(&self) -> Result<String>
[src]
Returns the condition that must be satisfied in order for a message to be dequeued. See
function dequeue::Options::set_condition()
for more information.
pub fn get_consumer_name(&self) -> Result<String>
[src]
Returns the name of the consumer that is dequeuing messages. See function
dequeue::Options::set_consumer_name()
for more information.
pub fn get_correlation(&self) -> Result<String>
[src]
Returns the correlation of the message to be dequeued. See function
dequeue::Options::set_correlation()
for more information.
pub fn get_mode(&self) -> Result<ODPIDeqMode>
[src]
Returns the mode that is to be used when dequeuing messages.
pub fn get_msg_id(&self) -> Result<String>
[src]
Returns the identifier of the specific message that is to be dequeued.
[src]
Returns the position of the message that is to be dequeued.
pub fn get_transformation(&self) -> Result<String>
[src]
Returns the transformation of the message to be dequeued. See function
dequeue::Options::set_transformation()
for more information.
pub fn get_visibility(&self) -> Result<ODPIVisibility>
[src]
Returns whether the message being dequeued is part of the current transaction or constitutes a transaction on its own.
pub fn get_wait(&self) -> Result<u32>
[src]
Returns the time to wait, in seconds, for a message matching the search criteria. See
function dequeue::Options::set_wait()
for more information.
pub fn set_condition(&self, condition: Option<&str>) -> Result<()>
[src]
Sets the condition which must be true for messages to be dequeued. The condition must be a valid boolean expression similar to the where clause of a SQL query. The expression can include conditions on message properties, user data properties and PL/SQL or SQL functions. User data properties must be prefixed with tab.user_data as a qualifier to indicate the specific column of the queue table that stores the message payload.
condition
- a string in the encoding used for CHAR data, or None if the condition is to be cleared.
pub fn set_consumer_name(&self, cosumer_name: Option<&str>) -> Result<()>
[src]
Sets the name of the consumer which will be dequeuing messages. This value should only be set if the queue is set up for multiple consumers.
consumer_name
- a string in the encoding used for CHAR data, or None if the consumer name is to be cleared.
pub fn set_correlation(&self, correlation: Option<&str>) -> Result<()>
[src]
Sets the correlation of the message to be dequeued. Special pattern matching characters such as the percent sign (%) and the underscore (_) can be used. If multiple messages satisfy the pattern, the order of dequeuing is undetermined.
correlation
- a string in the encoding used for CHAR data, or None if the correlation is to be cleared.
pub fn set_mode(&self, mode: ODPIDeqMode) -> Result<()>
[src]
Sets the mode that is to be used when dequeuing messages.
mode
- he mode that should be used. It should be one of the values from the enumerationODPIDeqMode
.
pub fn set_msg_id(&self, msg_id: Option<&str>) -> Result<()>
[src]
Sets the identifier of the specific message to be dequeued.
msg_id
- a string making up the message identifier, or None if no specific message is to be dequeued.
[src]
Sets the position in the queue of the message that is to be dequeued.
nav
- the value that should be used. It should be one of the values from the enumerationODPIDeqNavigation
.
pub fn set_transformation(&self, transform: Option<&str>) -> Result<()>
[src]
Sets the transformation of the message to be dequeued. The transformation is applied after the message is dequeued but before it is returned to the application. It must be created using DBMS_TRANSFORM.
transform
- a string in the encoding used for CHAR data, or None if the transformation is to be cleared.
pub fn set_visibility(&self, visibility: ODPIVisibility) -> Result<()>
[src]
Sets whether the message being dequeued is part of the current transaction or constitutes a transaction on its own.
visibility
- the value that should be used. It should be one of the values from the enumerationODPIVisibility
.
pub fn set_wait(&self, wait: u32) -> Result<()>
[src]
Set the time to wait, in seconds, for a message matching the search criteria.
wait
- the number of seconds to wait for a message matching the search criteria. Any integer is valid but the predefined constants DPI_DEQ_WAIT_NO_WAIT and DPI_DEQ_WAIT_FOREVER are provided as a convenience.
Trait Implementations
impl Clone for Options
[src]
fn clone(&self) -> Options
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more