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

org.cryptomator.cryptofs.fh.OpenFileScoped Maven / Gradle / Ivy

There is a newer version: 2.7.1-beta1
Show newest version
package org.cryptomator.cryptofs.fh;

import javax.inject.Scope;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * An OpenFile is {@link OpenCryptoFiles#getOrCreate(java.nio.file.Path) created} with the sole purpose of opening a FileChannel.
 * 

* When the last active file channel is closed, the OpenFile is closed. I.e. it is strictly required for anyone creating an OpenFile to get, use and close a FileChannel. */ @Scope @Documented @Retention(RUNTIME) @interface OpenFileScoped { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy