简体   繁体   English

Hazelcast主题消息到期

[英]Hazelcast topic message expiry

Can anyone share some notes on message expiration policy in Hazelcast ITopic? 任何人都可以在Hazelcast ITopic中共享一些有关邮件过期策略的注释吗? I could not find any documentation on that. 我找不到任何文档。

Basically I am designing a peer-to-peer file sharing subsystem leveraging Hazelcast publish-subscribe. 基本上,我正在设计一个利用Hazelcast发布-订阅的对等文件共享子系统。 I would want to make sure that my message chunks (which are basically file chunks) get expired after the message has been consumed. 我想确保在使用完消息后,我的消息块(基本上是文件块)过期。 I do have a handshake mechanism in place, to get notified on receipt completion, however, not being able to 'clear' the topic someway. 我确实有一个握手机制,可以在收据完成时得到通知,但是无法以某种方式“清除”主题。

Thanks 谢谢

What do you mean by "clearing the topic"? “清除主题”是什么意思? After the message is consumed, it will not appear on the same node again. 使用完消息后,它将不再出现在同一节点上。

Hazelcast itself does not have expiry for topic built-in as the system is a fire and forget implementation. Hazelcast本身没有内置主题的到期时间,因为该系统是一种即发即弃的实现方式。 Even on ReliableTopic you would have to build an envelope containing a timestamp. 即使在ReliableTopic上,您也必须构建一个包含时间戳的信封。 Anyhow I guess I'm not sure what you really mean by "expiry" in your usecase. 无论如何,我想我不确定用例中“到期”的真正含义。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM