Module aeonics.core

Class Queue


  • public class Queue
    extends Item<Queue.Type>
    This class represents a queue that can subscribe to one or more topics.

    The queue will send messages to the related Action and Destination based on the different parameters and policy.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Queue.Type
      This is the default entity to manage the orchestration of the different messages.
    • Constructor Summary

      Constructors 
      Constructor Description
      Queue()  
    • Constructor Detail

      • Queue

        public Queue()
    • Method Detail

      • defaultTarget

        protected java.lang.Class<? extends Queue.Type> defaultTarget()
        Description copied from class: Item
        Returns the default target entity type. This method should be implemented by subclasses to specify the target entity type.
        Specified by:
        defaultTarget in class Item<Queue.Type>
        Returns:
        the default target entity type
      • defaultCreator

        protected java.util.function.Supplier<? extends Queue.Type> defaultCreator()
        Description copied from class: Item
        Returns the default target entity creator. This method should be implemented by subclasses to specify the entity creator.
        Specified by:
        defaultCreator in class Item<Queue.Type>
        Returns:
        the default target entity creator
      • category

        protected java.lang.Class<? extends Queue> category()
        Description copied from class: Item
        Returns the target entity category. This method should be implemented by subclasses to specify the entity category.
        Specified by:
        category in class Item<Queue.Type>
        Returns:
        the target entity category
      • template

        public Template<? extends Queue.Type> template()
        Description copied from class: Item
        Returns the template to build the target entity.

        This method should ultimately be used to provide the final entity template. Although, it may also provide a partial template that subclassed may complement.

        Overrides:
        template in class Item<Queue.Type>
        Returns:
        the matching entity template