Package org.bluezoo.gumdrop.pop3.handler
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoiderror(String message, TransactionHandler handler) Reports an error during reset.voidresetComplete(int messageCount, long totalSize, TransactionHandler handler) Confirms all messages have been undeleted.
-
Method Details
-
resetComplete
Confirms all messages have been undeleted.Sends a +OK response with the current mailbox statistics.
- Parameters:
messageCount- number of messages after resettotalSize- total size after resethandler- continues receiving transaction commands
-
error
Reports an error during reset.- Parameters:
message- the error messagehandler- continues receiving transaction commands
-