Package coilmq :: Module scheduler
[frames] | no frames]

Module scheduler

Classes that provide delivery scheduler implementations.

The default implementation used by the system for determining which subscriber (connection) should receive a message is simply a random choice but favoring reliable subscribers. Developers can write their own delivery schedulers, which should implement the methods defined in QueuePriorityScheduler if they would like to customize the behavior.


Author: "Hans Lellelid" <hans@xmpl.org>

Copyright: Copyright 2009 Hans Lellelid

License: Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Classes
  SubscriberPriorityScheduler
Abstract base class for choosing which recipient (subscriber) should receive a message.
  QueuePriorityScheduler
Abstract base class for objects that provide a way to prioritize the queues.
  RandomSubscriberScheduler
A delivery scheduler that chooses a random subscriber for message recipient.
  FavorReliableSubscriberScheduler
A random delivery scheduler which prefers reliable subscribers.
  RandomQueueScheduler
Implementation of QueuePriorityScheduler that selects a random queue from the list.