Class OpenMailMonitor

All Implemented Interfaces:
Future<Void>, Associator, Eligible

public class OpenMailMonitor extends OpenMailConnection
An event that opens folders on the store defined by the base class for monitoring.
  • Constructor Details

    • OpenMailMonitor

      public OpenMailMonitor(String... folderNames)
      Creates a new monitor connection (see OpenMailConnection) that sends events related to watching the specified folders.
      folderNames - the folders, defaults to “INBOX”
  • Method Details

    • folderNames

      public String[] folderNames()
      Returns the watched folders.
      the string[]