Class QueueStoreConfig

All Implemented Interfaces:
DataSerializable, IdentifiedDataSerializable

public class QueueStoreConfig
extends Object
implements IdentifiedDataSerializable
Configuration for the QueueStore.
  • Field Details


      public static final int DEFAULT_MEMORY_LIMIT
      The default number of queue item values to keep in memory. This value is ignored if there is no queue store enabled or if the queue is a priority queue.
      See Also:
      Constant Field Values

      public static final int DEFAULT_BULK_LOAD
      The default size of batches in which the queue will be loaded from the queue store. This value is ignored if the queue is a priority queue. In that case, the queue is loaded fully during initialisation.
      See Also:
      Constant Field Values

      public static final String STORE_BINARY
      Binary: By default, Hazelcast stores the queue items in serialized form in memory. Before it inserts the queue items into datastore, it deserializes them. But if you will not reach the queue store from an external application, you might prefer that the items be inserted in binary form. You can get rid of the de-serialization step; this would be a performance optimization. The binary feature is disabled by default.
      See Also:
      Constant Field Values

      public static final String STORE_MEMORY_LIMIT
      Memory Limit: This is the number of items after which Hazelcast will store items only to datastore. For example, if the memory limit is 1000, then the 1001st item will be put only to datastore. This feature is useful when you want to avoid out-of-memory conditions. The default number for memory-limit is 1000. If you want to always use memory, you can set it to Integer.MAX_VALUE.
      See Also:
      Constant Field Values

      public static final String STORE_BULK_LOAD
      Bulk Load: When the queue is initialized, items are loaded from QueueStore in bulks. Bulk load is the size of these bulks. By default, bulk-load is 250.
      See Also:
      Constant Field Values
  • Constructor Details

  • Method Details