Class MemoryBuilder

java.lang.Object
com.swiftmq.impl.streams.comp.memory.MemoryBuilder

public class MemoryBuilder extends Object
Factory to create Memories.
Author:
IIT Software GmbH, Muenster/Germany, (c) 2016, All Rights Reserved
  • Constructor Details

  • Method Details

    • heap

      public HeapMemory heap()
      Creates a Memory that stores Messages on the Heap
      Returns:
      HeapMemory
    • queue

      public QueueMemory queue(String queueName) throws Exception
      Creates a Memory that stores Messages in a regular Queue
      Parameters:
      queueName - Queue that serves as a persistent store
      Returns:
      QueueMemory
      Throws:
      Exception
    • sharedQueue

      public QueueMemory sharedQueue(String queueName) throws Exception
      Creates a Memory that stores Messages in a regular Queue and shared that Queue with other QueueMemories of the same Stream
      Parameters:
      queueName - Queue that serves as a shared persistent store
      Returns:
      QueueMemory
      Throws:
      Exception
    • tempqueue

      public TempQueueMemory tempqueue() throws Exception
      Creates a Memory that stores Messages in a Temporary Queue
      Returns:
      TempQueueMemory
      Throws:
      Exception