RuleDescription Class

  • java.lang.Object
    • com.microsoft.azure.servicebus.rules.RuleDescription

public class RuleDescription

Representation of a rule defined on service bus topics.

Constructor Summary

Constructor Description
RuleDescription()

Creates a rule description with no name, TrueFilter as filter and no action.

RuleDescription(Filter filter)

Creates a rule description with no name, given filter as filter and no action.

RuleDescription(String name)

Creates a rule description with the given name, TrueFilter as filter and no action.

RuleDescription(String name, Filter filter)

Creates a rule description with the given name, given filter as filter and no action.

Method Summary

Modifier and Type Method and Description
boolean equals(Object other)
RuleAction getAction()

Gets the action this rule performs on messages matched by this rule's filter.

Filter getFilter()

Gets the filter of this rule.

String getName()

Gets the name of this rule.

int hashCode()
void setAction(RuleAction action)

Sets the action this rule performs on messages matched by this rule's filter.

void setFilter(Filter filter)

Sets the filter of this rule.

void setName(String name)

Sets the name of this rule.

Methods inherited from java.lang.Object

Constructor Details

RuleDescription

public RuleDescription()

Creates a rule description with no name, TrueFilter as filter and no action.

RuleDescription

public RuleDescription(Filter filter)

Creates a rule description with no name, given filter as filter and no action.

Parameters:

filter - filter the rule uses to filter messages. Can be CorrelationFilter or SqlFilter.

RuleDescription

public RuleDescription(String name)

Creates a rule description with the given name, TrueFilter as filter and no action.

Parameters:

name - name of the rule

RuleDescription

public RuleDescription(String name, Filter filter)

Creates a rule description with the given name, given filter as filter and no action.

Parameters:

name - name of the rule
filter - filter this rule uses to filter messages. Can be Can be CorrelationFilter or SqlFilter.

Method Details

equals

public boolean equals(Object other)

Overrides:

RuleDescription.equals(Object other)

Parameters:

other

getAction

public RuleAction getAction()

Gets the action this rule performs on messages matched by this rule's filter.

Returns:

action action this rule performs on matched messages

getFilter

public Filter getFilter()

Gets the filter of this rule.

Returns:

the filter this rule uses to filter messages

getName

public String getName()

Gets the name of this rule.

Returns:

name of this rule

hashCode

public int hashCode()

Overrides:

RuleDescription.hashCode()

setAction

public void setAction(RuleAction action)

Sets the action this rule performs on messages matched by this rule's filter.

Parameters:

action - action this rule performs on matched messages

setFilter

public void setFilter(Filter filter)

Sets the filter of this rule.

Parameters:

filter - filter this rule uses to filter messages. Can be Can be CorrelationFilter or SqlFilter.

setName

public void setName(String name)

Sets the name of this rule.

Parameters:

name - name of this rule

Applies to