org.omg.CosNotification

Interface DiscardPolicy

public interface DiscardPolicy

This QoS property enables a user of the Notification Service to specify in what order the channel should begin discarding events in the case of an internal buffer overflow. If set only on a per-channel basis, the chosen discard policy will be applied whenever a supplier attempts to send a new event to the channel, and the total number of events already queued within the channel is equal to the MaxQueueLength administrative property (defined in section 2.5.7). If set on a per-ConsumerAdmin basis, the chosen discard policy will be applied whenever the number of events queued on behalf of one of the consumers connected to one of the proxy suppliers created by the ConsumerAdmin exceeds the MaxEventsPerConsumer setting for that consumer. If set on a per-proxy supplier basis, the chosen discard policy will be applied whenever the number of events queued on behalf of the consumer connected to the proxy supplier exceeds the MaxEventsPerConsumer setting for that proxy supplier. Note that in these latter two cases, an event will only be discarded with respect to its scheduled delivery to the consumer(s) on whose behalf the policy is being applied. In other words, if the event targeted for discarding is scheduled for delivery to any consumer(s) on whose behalf the discard policy was not invoked, the event remains queued for those consumers.
Field Summary
static Stringvalue
Constant value

Field Detail

value

public static final String value
Constant value