Package org.ical4j.integration
Interface CalendarConsumer
-
public interface CalendarConsumer
Implementors of this interface support retrieval of iCalendar data via some transport protocol. For example, IMAP, POP3, HTTP, etc.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<net.fortuna.ical4j.model.Calendar>
poll(long timeout)
Invoke retrieval of calendar data via supported transport protocol.
-
-
-
Method Detail
-
poll
Optional<net.fortuna.ical4j.model.Calendar> poll(long timeout) throws IOException
Invoke retrieval of calendar data via supported transport protocol.- Parameters:
timeout
- maximum duration of data retrieval- Returns:
- the retrieved calendar data
- Throws:
IOException
- if data retrieval fails
-
-