java - Passing Messages Between Fibers Quasar -
i using quasar fiber listen , process messages on queueobjectchannel
. not sure object supposed use message queue between fibers. problem having don't understand supposed passed queueobjectchannel
constructor. according javadoc constructor supposed take queueobjectchannel(co.paralleluniverse.strands.queues.basicqueue<message> queue, channels.overflowpolicy policy, boolean singleproducer, boolean singleconsumer)
seems counterintuitive because trying build implements basicqueue
.
am supposed implement interface?
is understanding of inter fiber communication off?
usually 1 wants (and should) use channels api, not backing queues. example different queue implementations can work and/or optimal data types, threads and/or fibers, specific buffer configuration, when there's single consumer etc.
as explained here use static channels.new*channel
methods passing in properties need , you'll channel backed queue tailor-suited use case.
Comments
Post a Comment