com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class ImapMonitoringEventArgs



  • public class ImapMonitoringEventArgs
    extends EventArgs

    Class contains monitoring event data.

    • Constructor Detail

      • ImapMonitoringEventArgs

        public ImapMonitoringEventArgs(String folderName,
                               ImapMessageInfo[] newMessages,
                               ImapMessageInfo[] deletedMessages)

        Initializes a new instance of the ImapMonitoringEventArgs class

        Parameters:
        folderName - specified folder for monitoring operation
        newMessages - Contains information about new messages
        deletedMessages - Contains information about deleted messages
      • ImapMonitoringEventArgs

        @Deprecated
        public ImapMonitoringEventArgs(String folderName,
                                          Throwable error)
        Deprecated. Use ImapMonitoringErrorEventHandler instead

        Initializes a new instance of the ImapMonitoringEventArgs class

        Parameters:
        folderName - specified folder for monitoring operation
        error - Error of IMAP IDLE operation
    • Method Detail

      • getFolderName

        public final String getFolderName()

        Gets specified folder for monitoring operation.

      • getError

        @Deprecated
        public final Throwable getError()
        Deprecated. Use ImapMonitoringErrorEventHandler instead

        Gets error of IMAP IDLE operation.

      • getNewMessages

        public final ImapMessageInfo[] getNewMessages()

        Gets new messages

      • getDeletedMessages

        public final ImapMessageInfo[] getDeletedMessages()

        Gets deleted messages