public class AbstractMessageFactory<T> extends AbstractQueueSender<T> implements MessagePropertiesFactory<T>
Constructor and Description |
---|
AbstractMessageFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.String |
getContentEncoding() |
java.lang.String |
getContentType() |
java.lang.Object |
getCorrelationId() |
long |
getCreationTime() |
long |
getExpiryTime() |
java.lang.String |
getGroupId() |
long |
getGroupSequence() |
java.lang.Object |
getMessageId() |
int |
getPriority() |
java.lang.String |
getReplyTo() |
java.lang.String |
getReplyToGroupId() |
java.lang.String |
getSubject() |
long |
getTimeToLive() |
java.lang.String |
getTo() |
java.lang.String |
getUserId() |
boolean |
isDurable() |
boolean |
isFirstAcquirer() |
protected boolean |
offerMicros(MessagePropertiesFactory<T> factory,
T value,
long timeoutMicros)
Offers a value to the queue.
|
void |
setContentEncoding(java.lang.String value) |
void |
setContentType(java.lang.String value) |
void |
setCorrelationId(java.lang.Object value) |
void |
setCreationTime(long value) |
void |
setDurable(boolean isDurable) |
void |
setExpiryTime(long value) |
void |
setFirstAcquirer(boolean isFirst) |
void |
setGroupId(java.lang.String value) |
void |
setGroupSequence(long value) |
void |
setMessageId(java.lang.Object value) |
void |
setPriority(int priority) |
void |
setReplyTo(java.lang.String value) |
void |
setReplyToGroupId(java.lang.String value) |
void |
setSubject(java.lang.String subject) |
void |
setTimeToLive(long ttl) |
void |
setTo(java.lang.String to) |
void |
setUserId(java.lang.String value) |
add, addAll, clear, contains, containsAll, drainTo, drainTo, element, getMessageFactory, isEmpty, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, remove, removeAll, retainAll, size, take, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
public void setDurable(boolean isDurable)
setDurable
in interface MessagePropertiesFactory<T>
public boolean isDurable()
isDurable
in interface MessagePropertiesFactory<T>
public int getPriority()
getPriority
in interface MessagePropertiesFactory<T>
public void setPriority(int priority)
setPriority
in interface MessagePropertiesFactory<T>
public long getTimeToLive()
getTimeToLive
in interface MessagePropertiesFactory<T>
public void setTimeToLive(long ttl)
setTimeToLive
in interface MessagePropertiesFactory<T>
public boolean isFirstAcquirer()
isFirstAcquirer
in interface MessagePropertiesFactory<T>
public void setFirstAcquirer(boolean isFirst)
setFirstAcquirer
in interface MessagePropertiesFactory<T>
public java.lang.Object getMessageId()
getMessageId
in interface MessagePropertiesFactory<T>
public void setMessageId(java.lang.Object value)
setMessageId
in interface MessagePropertiesFactory<T>
public java.lang.String getUserId()
getUserId
in interface MessagePropertiesFactory<T>
public void setUserId(java.lang.String value)
setUserId
in interface MessagePropertiesFactory<T>
public java.lang.String getTo()
getTo
in interface MessagePropertiesFactory<T>
public void setTo(java.lang.String to)
setTo
in interface MessagePropertiesFactory<T>
public java.lang.String getSubject()
getSubject
in interface MessagePropertiesFactory<T>
public void setSubject(java.lang.String subject)
setSubject
in interface MessagePropertiesFactory<T>
public java.lang.String getReplyTo()
getReplyTo
in interface MessagePropertiesFactory<T>
public void setReplyTo(java.lang.String value)
setReplyTo
in interface MessagePropertiesFactory<T>
public java.lang.Object getCorrelationId()
getCorrelationId
in interface MessagePropertiesFactory<T>
public void setCorrelationId(java.lang.Object value)
setCorrelationId
in interface MessagePropertiesFactory<T>
public java.lang.String getContentType()
getContentType
in interface MessagePropertiesFactory<T>
public void setContentType(java.lang.String value)
setContentType
in interface MessagePropertiesFactory<T>
public java.lang.String getContentEncoding()
getContentEncoding
in interface MessagePropertiesFactory<T>
public void setContentEncoding(java.lang.String value)
setContentEncoding
in interface MessagePropertiesFactory<T>
public long getExpiryTime()
getExpiryTime
in interface MessagePropertiesFactory<T>
public void setExpiryTime(long value)
setExpiryTime
in interface MessagePropertiesFactory<T>
public long getCreationTime()
getCreationTime
in interface MessagePropertiesFactory<T>
public void setCreationTime(long value)
setCreationTime
in interface MessagePropertiesFactory<T>
public java.lang.String getGroupId()
getGroupId
in interface MessagePropertiesFactory<T>
public void setGroupId(java.lang.String value)
setGroupId
in interface MessagePropertiesFactory<T>
public long getGroupSequence()
getGroupSequence
in interface MessagePropertiesFactory<T>
public void setGroupSequence(long value)
setGroupSequence
in interface MessagePropertiesFactory<T>
public java.lang.String getReplyToGroupId()
getReplyToGroupId
in interface MessagePropertiesFactory<T>
public void setReplyToGroupId(java.lang.String value)
setReplyToGroupId
in interface MessagePropertiesFactory<T>
protected boolean offerMicros(MessagePropertiesFactory<T> factory, T value, long timeoutMicros)
AbstractQueueSender
offerMicros
in class AbstractQueueSender<T>
public void close()
close
in interface MessagePropertiesFactory<T>