Interface MailAccount

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      javax.mail.Session getSession()
      Get a Session for this account.

      The account implementation can decide whether to cache the session instance or not.
      void setConnectionTimeout​(int connectionTimeout)
      Socket connection timeout value in milliseconds.
      void setProperties​(Properties properties)
      Set additional properties.
      void setTimeout​(int timeout)
      Socket read timeout value in milliseconds.
    • Method Detail

      • setConnectionTimeout

        void setConnectionTimeout​(int connectionTimeout)
        Socket connection timeout value in milliseconds.
        Parameters:
        connectionTimeout - timeout value
      • setTimeout

        void setTimeout​(int timeout)
        Socket read timeout value in milliseconds.
        Parameters:
        timeout - timeout value
      • setProperties

        void setProperties​(Properties properties)
        Set additional properties.
        Parameters:
        properties - the properties to set
      • getSession

        javax.mail.Session getSession()
        Get a Session for this account.

        The account implementation can decide whether to cache the session instance or not.
        Returns:
        a Session instance.