Package org.ical4j.integration.local
Class LocalQueueAdapter<T>
- java.lang.Object
-
- org.ical4j.integration.local.LocalQueueAdapter<T>
-
- All Implemented Interfaces:
ChannelAdapter<T>
public class LocalQueueAdapter<T> extends Object implements ChannelAdapter<T>
-
-
Constructor Summary
Constructors Constructor Description LocalQueueAdapter(Queue<T> queue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanreceive(Consumer<T> consumer, long timeout, boolean autoExpunge)Invoke retrieval of calendar data via supported transport protocol.booleansend(Supplier<T> supplier)Invoke transfer of data via supported transport protocol.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ical4j.integration.ChannelAdapter
expunge, receive
-
-
-
-
Method Detail
-
send
public boolean send(Supplier<T> supplier)
Description copied from interface:ChannelAdapterInvoke transfer of data via supported transport protocol.- Specified by:
sendin interfaceChannelAdapter<T>- Parameters:
supplier- source of data to transfer
-
receive
public boolean receive(Consumer<T> consumer, long timeout, boolean autoExpunge)
Description copied from interface:ChannelAdapterInvoke retrieval of calendar data via supported transport protocol.- Specified by:
receivein interfaceChannelAdapter<T>timeout- maximum duration of data retrieval- Returns:
- the retrieved calendar data
-
-