DelayQueue is not Serializable?

Aleksey Shipilev aleksey.shipilev at gmail.com
Wed Sep 21 09:17:16 UTC 2011


On Wed, Sep 21, 2011 at 1:12 PM, Aleksey Shipilev
<aleksey.shipilev at gmail.com> wrote:
> On Tue, Sep 20, 2011 at 10:34 PM, Doug Lea <dl at cs.oswego.edu> wrote:
> From the code perspective, it appears to be point change.

I take that assertion back. I understand the Delayed elements which
are using constant delays need to be carefully recalibrated after
deserialization, which will probably require storing advanced metainfo
(i.e. "absolute time-to-fire") in serialized form.

Most of the examples for DelayQueue I saw had the elements which are
self-calibrating, i.e. calling System.cTM() to infer real time.

-Aleksey.



More information about the core-libs-dev mailing list