Package org.acemq.amqp.transport
Class QueueCheck
java.lang.Object
org.acemq.amqp.transport.QueueCheck
What a broker says about a queue somebody is about to declare.
Four answers rather than two, because "the queue is not the way you want it" and "I cannot
tell you" are different facts and collapsing them would make the second look like the first.
A transport that cannot inspect a queue says unsupported(), and callers report that
as unknown rather than as agreement.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhich of the four answers this is. -
Method Summary
Modifier and TypeMethodDescriptionstatic QueueCheckabsent()@Nullable Stringdetail()static QueueCheckstatic QueueCheckmatches()result()toString()static QueueCheck
-
Method Details
-
matches
- Returns:
- the queue exists and matches
-
absent
- Returns:
- there is no such queue
-
differs
- Parameters:
detail- what differs, in the broker's own words where there are any. This ends up in front of whoever is deciding what to do about it, so it should name the argument rather than say that something is wrong- Returns:
- the queue exists with settings that would be refused
-
unsupported
- Returns:
- this transport cannot answer the question
-
result
- Returns:
- which answer this is
-
detail
- Returns:
- what differs, when something does
-
toString
-