|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JMSControl
The control interface for the jms control.
Nested Class Summary | |
---|---|
static class |
JMSControl.AcknowledgeMode
The acknowledge mode. |
static interface |
JMSControl.CorrelationId
The method/parameter representing the message JMS CorrelationID. |
static interface |
JMSControl.Delivery
The method parameter representing a message delivery mode. |
static class |
JMSControl.DeliveryMode
The delivery mode. |
static interface |
JMSControl.Destination
The JMS destination annotation for a extended class method. |
static class |
JMSControl.DestinationType
The destination type. |
static interface |
JMSControl.Expiration
The method parameter representing a message expiration in milliseconds. |
static class |
JMSControl.HeaderType
The header type. |
static interface |
JMSControl.Message
The message type used by the method. |
static class |
JMSControl.MessageType
The message type. |
static interface |
JMSControl.Priority
The method/parameter annotation representing a message priority. |
static interface |
JMSControl.Properties
The method parameter representing one or more properties. |
static interface |
JMSControl.Property
The method parameter representing a message property with the given name. |
static interface |
JMSControl.PropertyValue
The method parameter representing a message property with the given name and value. |
static interface |
JMSControl.Type
The method/parameter representing the message JMS type. |
Field Summary | |
---|---|
static String |
HEADER_CORRELATIONID
Deprecated. |
static String |
HEADER_DELIVERYMODE
Deprecated. |
static String |
HEADER_EXPIRATION
Deprecated. |
static String |
HEADER_MESSAGEID
Deprecated. |
static String |
HEADER_PRIORITY
Deprecated. |
static String |
HEADER_REDELIVERED
Deprecated. |
static String |
HEADER_TIMESTAMP
Deprecated. |
static String |
HEADER_TYPE
Deprecated. |
Method Summary | |
---|---|
Connection |
getConnection()
Get the JMS Connection. |
Destination |
getDestination()
Get the jms-destination. |
Session |
getSession()
Get the JMS Session object. |
void |
setHeader(JMSControl.HeaderType type,
Object value)
Sets a JMS header to be assigned to the next JMS message sent. |
void |
setHeaders(Map headers)
Sets the JMS headers to be assigned to the next JMS message sent. |
void |
setProperties(Map properties)
Sets the JMS properties to be assigned to the next JMS message sent. |
void |
setProperty(String name,
Object value)
Set the given JMS property to be assigned to the next JMS message sent. |
Field Detail |
---|
static final String HEADER_CORRELATIONID
JMSControl.HeaderType
static final String HEADER_DELIVERYMODE
JMSControl.HeaderType
static final String HEADER_EXPIRATION
JMSControl.HeaderType
static final String HEADER_MESSAGEID
JMSControl.HeaderType
static final String HEADER_PRIORITY
JMSControl.HeaderType
static final String HEADER_REDELIVERED
JMSControl.HeaderType
static final String HEADER_TIMESTAMP
JMSControl.HeaderType
static final String HEADER_TYPE
JMSControl.HeaderType
Method Detail |
---|
Session getSession() throws ControlException
ControlException
Connection getConnection() throws ControlException
ControlException
Destination getDestination() throws ControlException
ControlException
void setHeaders(Map headers)
headers
- A map of header names (Strings or HeaderType) to header values.void setHeader(JMSControl.HeaderType type, Object value)
type
- the header type.value
- the value for the header.void setProperties(Map properties)
properties
- A map of property names (Strings) to property
values.void setProperty(String name, Object value)
name
- the property name.value
- the property value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |