Interface StoreState


public interface StoreState
Operations available when responding to STORE commands.
Author:
Chris Burdess
See Also:
  • Method Details

    • flagsUpdated

      void flagsUpdated(int sequenceNumber, Set<Flag> flags)
      Sends a FETCH response with updated flags.

      Unless .SILENT was used, call this for each modified message.

      Parameters:
      sequenceNumber - the message sequence number
      flags - the new flags
    • storeComplete

      void storeComplete(SelectedHandler handler)
      Store completed successfully.
      Parameters:
      handler - continues receiving selected commands
    • storeFailed

      void storeFailed(String message, SelectedHandler handler)
      Store failed (e.g., read-only mailbox).
      Parameters:
      message - the error message
      handler - continues receiving selected commands
    • serverShuttingDown

      void serverShuttingDown()
      Server is shutting down, close gracefully.

      Sends an untagged BYE response indicating the server is shutting down and closes the connection.