void execute() {
        taskContextFactory.current().info(() -> "Deleting temp files");
        cleanup();
    }
Simple Store that gives you 1 hour to use your temp file before it deletes it.
stroom-resource/stroom-resource-impl/src/main/java/stroom/resource/impl/ResourceStoreImpl.java