Class LocalMessageQueue

  • All Implemented Interfaces:
    org.elasticsoftware.elasticactors.messaging.MessageQueue

    public final class LocalMessageQueue
    extends Object
    implements org.elasticsoftware.elasticactors.messaging.MessageQueue
    Author:
    Joost van de Wijgerd
    • Constructor Detail

      • LocalMessageQueue

        public LocalMessageQueue​(org.elasticsoftware.elasticactors.util.concurrent.ThreadBoundExecutor queueExecutor,
                                 String queueName,
                                 org.elasticsoftware.elasticactors.messaging.MessageHandler messageHandler)
    • Method Detail

      • getThrownExceptions

        public static List<Throwable> getThrownExceptions()
      • offer

        public boolean offer​(org.elasticsoftware.elasticactors.messaging.InternalMessage message)
        Specified by:
        offer in interface org.elasticsoftware.elasticactors.messaging.MessageQueue
      • add

        public boolean add​(org.elasticsoftware.elasticactors.messaging.InternalMessage message)
        Specified by:
        add in interface org.elasticsoftware.elasticactors.messaging.MessageQueue
      • poll

        public org.elasticsoftware.elasticactors.messaging.InternalMessage poll()
        Specified by:
        poll in interface org.elasticsoftware.elasticactors.messaging.MessageQueue
      • getName

        public String getName()
        Specified by:
        getName in interface org.elasticsoftware.elasticactors.messaging.MessageQueue
      • initialize

        public void initialize()
                        throws Exception
        Specified by:
        initialize in interface org.elasticsoftware.elasticactors.messaging.MessageQueue
        Throws:
        Exception
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.elasticsoftware.elasticactors.messaging.MessageQueue