All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.blob.BlobStore Maven / Gradle / Ivy

The newest version!
package com.enonic.xp.blob;

import java.util.stream.Stream;

import com.google.common.io.ByteSource;

public interface BlobStore
{
    BlobRecord getRecord( Segment segment, BlobKey key )
        throws BlobStoreException;

    BlobRecord addRecord( Segment segment, ByteSource in )
        throws BlobStoreException;

    BlobRecord addRecord( Segment segment, BlobRecord record )
        throws BlobStoreException;

    void removeRecord( Segment segment, BlobKey key )
        throws BlobStoreException;

    Stream list( Segment segment );

    Stream listSegments();

    void deleteSegment( Segment segment );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy