Class CalendarMailTransport

  • All Implemented Interfaces:
    org.ical4j.integration.CalendarConsumer, org.ical4j.integration.CalendarProducer

    public class CalendarMailTransport
    extends Object
    implements org.ical4j.integration.CalendarProducer, org.ical4j.integration.CalendarConsumer
    • Constructor Detail

      • CalendarMailTransport

        public CalendarMailTransport​(javax.mail.Session session,
                                     MessageParser<net.fortuna.ical4j.model.Calendar> messageParser)
    • Method Detail

      • send

        public void send​(net.fortuna.ical4j.model.Calendar calendar)
                  throws org.ical4j.integration.FailedDeliveryException
        Specified by:
        send in interface org.ical4j.integration.CalendarProducer
        Throws:
        org.ical4j.integration.FailedDeliveryException
      • poll

        public Optional<net.fortuna.ical4j.model.Calendar> poll​(long timeout)
        Specified by:
        poll in interface org.ical4j.integration.CalendarConsumer