Interface ResetState

All Known Implementing Classes:
POP3ProtocolHandler

public interface ResetState
Operations available when responding to a reset request.

This interface is provided to TransactionHandler.reset(org.bluezoo.gumdrop.pop3.handler.ResetState, org.bluezoo.gumdrop.mailbox.Mailbox) and allows the handler to confirm that all deleted messages have been undeleted.

Author:
Chris Burdess
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    error(String message, TransactionHandler handler)
    Reports an error during reset.
    void
    resetComplete(int messageCount, long totalSize, TransactionHandler handler)
    Confirms all messages have been undeleted.
  • Method Details

    • resetComplete

      void resetComplete(int messageCount, long totalSize, TransactionHandler handler)
      Confirms all messages have been undeleted.

      Sends a +OK response with the current mailbox statistics.

      Parameters:
      messageCount - number of messages after reset
      totalSize - total size after reset
      handler - continues receiving transaction commands
    • error

      void error(String message, TransactionHandler handler)
      Reports an error during reset.
      Parameters:
      message - the error message
      handler - continues receiving transaction commands