|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SolaceOrphanSubscriptionCheckPolicy>
com.neeve.solace.SolaceOrphanSubscriptionCheckPolicy
public enum SolaceOrphanSubscriptionCheckPolicy
Enumerates possible 'orphan' subscription checks.
When a solace message bus binding has a queue name specified it is capable of issue guaranteed subscriptions against that queue. When a binding is started it is possible that there may already be existing subscriptions on the queue that don't match those that the application is issuing. Such subscriptions are considered to be 'orphan' subscriptions - presumably those left over from an early session that were not removed.
When the Solace appliance and binding is configured with SEMP over messaging enabled the binding can request a list of the subscriptions on the queue and compare them with those issue by the binding. This class enumerates the possible checks that can be done. NOTE: Orphan subscription checking is currently an experimental feature that is still in incubation. Enabling orphan subscription checks or not recommended for production.
SolaceBindingProperties.ENABLE_SEMP_PROPNAME
Enum Constant Summary | |
---|---|
Ignore
With this policy enabled the appliance is queried for subscriptions, but no action is taken other than tracing the orphans subscriptions at info level. |
|
LogExceptionAndContinue
With this policy enabled the appliance is queried for subscriptions and if orphands are found an exception is logged. |
|
None
With this policy, the appliance is not queried for subscriptions This is the default policy |
|
NoOrphan
With this policy enabled the appliance is queried for subscriptions and an exception is thrown from the message binding start method. |
Method Summary | |
---|---|
static SolaceOrphanSubscriptionCheckPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static SolaceOrphanSubscriptionCheckPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final SolaceOrphanSubscriptionCheckPolicy None
This is the default policy
public static final SolaceOrphanSubscriptionCheckPolicy Ignore
One other difference between None
and
Ignore
is the the query subscriptions
are reported to a subscription validator if registered.
public static final SolaceOrphanSubscriptionCheckPolicy LogExceptionAndContinue
public static final SolaceOrphanSubscriptionCheckPolicy NoOrphan
Method Detail |
---|
public static SolaceOrphanSubscriptionCheckPolicy[] values()
for (SolaceOrphanSubscriptionCheckPolicy c : SolaceOrphanSubscriptionCheckPolicy.values()) System.out.println(c);
public static SolaceOrphanSubscriptionCheckPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |