@Override
    public ResourceKey createTempFile(final String name) {
        final String uuid = UUID.randomUUID().toString();
        final Path path = getTempDir().resolve(uuid);
        final ResourceKey resourceKey = new ResourceKey(uuid, name);
        final ResourceItem resourceItem = new ResourceItem(resourceKey, path, Instant.now());
        LOGGER.debug("Created resourceItem: {}", resourceItem);
        currentFiles.put(uuid, resourceItem);
        return resourceKey;
    }
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