Package io.github.elimelt.pmqueue
Enum QueueFactory.QueuePreset
- All Implemented Interfaces:
Serializable
,Comparable<QueueFactory.QueuePreset>
,java.lang.constant.Constable
- Enclosing class:
QueueFactory
Predefined queue configurations
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionConfigures the queue with durability settings.Configures the queue with high throughput settings.Configures the queue with large message settings. -
Method Summary
Modifier and TypeMethodDescriptioncreateQueue
(String filePath) Creates a new MessageQueue instance with the specified configuration.static QueueFactory.QueuePreset
Returns the enum constant of this type with the specified name.static QueueFactory.QueuePreset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HIGH_THROUGHPUT
Configures the queue with high throughput settings. -
DURABLE
Configures the queue with durability settings. -
LOW_MEMORY
Configures the queue with large message settings.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
createQueue
Creates a new MessageQueue instance with the specified configuration.- Parameters:
filePath
- the file path for the queue- Returns:
- MessageQueue instance
- Throws:
IOException
- if an I/O error occurs
-