All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.paradoxical.cassieq.model.QueueStatus Maven / Gradle / Ivy

The newest version!
package io.paradoxical.cassieq.model;

/**
 * The order of this matters as we will not let
 * people go down the stack. You can only move forward (but circularly)
 *
 * This means if you are at deleting you can go to inactive, but if you are inactive
 * you can't go to deleting
 */
public enum QueueStatus {
    /**
     * New queues are always created in this state
     */
    Provisioning,

    /**
     * The queue is provisioned and ready for use
     */
    Active,

    /**
     * This is the beginning of being marked for a deletion. You cannot create a new queue
     * while in this state
     */
    PendingDelete,

    /**
     * Once the deletion job tables are populated we can move to this state. You can now
     * create a queue with the same name if is in this state
     */
    Deleting,

    /**
     * Once all deletion jobs are complete (There may be many concurrently),
     * we set to inactive. This is the only time you can _actually_ remove the queue entry
     * from the table
     */
    Inactive,
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy