Class CorrelationFilter
- java.lang.Object
-
- com.microsoft.azure.servicebus.rules.Filter
-
- com.microsoft.azure.servicebus.rules.CorrelationFilter
-
public class CorrelationFilter extends Filter
Represents a correlation filter expression. A correlation filter is an efficient shortcut for declarations of filters that deal only with correlation equality of message properties. A correlation filter can be created to match one or more of standard or custom properties of a message. In the service, correlation filters are implemented as hashtable lookups. So they are much faster at run time than other types of filters.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description CorrelationFilter()
Creates a correlation filter with null values for all fields.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getContentType()
Gets the value of ContentType property of a message this filter matches.String
getCorrelationId()
Gets the value of correlationId property of a message this filter matches.String
getLabel()
Gets the value of Label property of a message this filter matches.String
getMessageId()
Gets the value of MessageId property of a message this filter matches.Map<String,Object>
getProperties()
Gets a name to value map of custom properties on a message this filter matches.String
getReplyTo()
Gets the value of ReplyTo property of a message this filter matches.String
getReplyToSessionId()
Gets the value of ReplyToSessionId property of a message this filter matches.String
getSessionId()
Gets the value of SessionId property of a message this filter matches.String
getTo()
Gets the value of To property of a message this filter matches.int
hashCode()
void
setContentType(String contentType)
Sets the value of ContentType property of a message this filter matches.void
setCorrelationId(String correlationId)
Gets the value of CorrelationId property of a message this filter matches.void
setLabel(String label)
Sets the value of Label property of a message this filter matches.void
setMessageId(String messageId)
Sets the value of MessageId property of a message this filter matches.void
setProperties(Map<String,Object> properties)
Sets a name to value map of custom properties on a message this filter matches.void
setReplyTo(String replyTo)
Sets the value of ReplyTo property of a message this filter matches.void
setReplyToSessionId(String replyToSessionId)
Sets the value of ReplyToSessionId property of a message this filter matches.void
setSessionId(String sessionId)
Sets the value of SessionId property of a message this filter matches.void
setTo(String to)
Sets the value of To property of a message this filter matches.
-
-
-
Method Detail
-
getCorrelationId
public String getCorrelationId()
Gets the value of correlationId property of a message this filter matches.- Returns:
- correlation id this filter matches
-
setCorrelationId
public void setCorrelationId(String correlationId)
Gets the value of CorrelationId property of a message this filter matches.- Parameters:
correlationId
- correlation id this filter matches
-
getMessageId
public String getMessageId()
Gets the value of MessageId property of a message this filter matches.- Returns:
- message id this filter matches
-
setMessageId
public void setMessageId(String messageId)
Sets the value of MessageId property of a message this filter matches.- Parameters:
messageId
- message id this filter matches
-
getTo
public String getTo()
Gets the value of To property of a message this filter matches.- Returns:
- To property value this filter matches
-
setTo
public void setTo(String to)
Sets the value of To property of a message this filter matches.- Parameters:
to
- To property value this filter matches
-
getReplyTo
public String getReplyTo()
Gets the value of ReplyTo property of a message this filter matches.- Returns:
- ReplyTo property value this filter matches
-
setReplyTo
public void setReplyTo(String replyTo)
Sets the value of ReplyTo property of a message this filter matches.- Parameters:
replyTo
- ReplyTo property value this filter matches
-
getLabel
public String getLabel()
Gets the value of Label property of a message this filter matches.- Returns:
- Label property value this filter matches
-
setLabel
public void setLabel(String label)
Sets the value of Label property of a message this filter matches.- Parameters:
label
- Label property value this filter matches
-
getSessionId
public String getSessionId()
Gets the value of SessionId property of a message this filter matches.- Returns:
- SessionId property value this filter matches
-
setSessionId
public void setSessionId(String sessionId)
Sets the value of SessionId property of a message this filter matches.- Parameters:
sessionId
- SessionId property value this filter matches
-
getReplyToSessionId
public String getReplyToSessionId()
Gets the value of ReplyToSessionId property of a message this filter matches.- Returns:
- ReplyToSessionId property value this filter matches
-
setReplyToSessionId
public void setReplyToSessionId(String replyToSessionId)
Sets the value of ReplyToSessionId property of a message this filter matches.- Parameters:
replyToSessionId
- ReplyToSessionId property value this filter matches
-
getContentType
public String getContentType()
Gets the value of ContentType property of a message this filter matches.- Returns:
- ContentType property value this filter matches
-
setContentType
public void setContentType(String contentType)
Sets the value of ContentType property of a message this filter matches.- Parameters:
contentType
- ContentType property value this filter matches
-
getProperties
public Map<String,Object> getProperties()
Gets a name to value map of custom properties on a message this filter matches.- Returns:
- map of custom properties this filter matches
-
setProperties
public void setProperties(Map<String,Object> properties)
Sets a name to value map of custom properties on a message this filter matches.- Parameters:
properties
- map of custom properties this filter matches
-
-