Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (C) 2011 Ursa Project LLC ( Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package com.ursaj.hfs.service;
Service to work with stored files information.

This service should be provided by your application.

<T> File information type your application works with.
public interface HfsFileService<T> extends HfsGcDriver {
Get stored file information for requested file IDs.

fileIds File IDs to retrieve information for.
Map of the requested file IDs to the existent file information. No map entry will be provided for the file ID which is not mapped to the stored file information.
Throws: In case of any IO exception.
    Map<UUID, T> getFiles(Set<UUIDfileIdsthrows IOException;

Store files information into persistent storage.

files Files information to store into persistent storage.
Throws: In case of any IO exception.
    void storeFiles(Collection<T> filesthrows IOException;
New to GrepCode? Check out our FAQ X