@Override
        protected synchronized void store( final List<Integer> batch )
        {
            final Instant now = Instant.now();
            batch.forEach( integer -> store.put( integer, now ) );
            batches.add( new Batch( batch ) );
        }
An Archiver that stores data in memory, while recording timestamps. Intended to be used by unit tests.
xmppserver/src/test/java/org/jivesoftware/openfire/archive/ArchiverTest.java