Aeron spy subscription - Stack Overflow

I want to publish data to Aeron even if there are no subscribers. I start media driver with a flag 

I want to publish data to Aeron even if there are no subscribers. I start media driver with a flag 'spiesSimulateConnection(true)'. Then I create a publication like this:

        if (isRecorded) {
            publication = archive.addRecordedExclusivePublication(channel, streamId);
        } else {
            publication = archive.context()
                .aeron()
                .addExclusivePublication(channel, streamId);
        }

If publication is recorded, then everything goes well. I understand that Aeron Archive creates a spy subscription, so the publication knows that someone is listening. If a publication is not recorded, then publication.offer returns Publication.NOT_CONNECTED. Is there a way to avoid errors here? Can I tell Aeron to create a spy subscription which discards data?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744928847a4601609.html

相关推荐

  • Aeron spy subscription - Stack Overflow

    I want to publish data to Aeron even if there are no subscribers. I start media driver with a flag 

    1天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信