congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
DistributedSegmentReadLocker.deleteOrReleaseReadLock
Code IndexAdd Tabnine to your IDE (free)

How to use
deleteOrReleaseReadLock
method
in
org.infinispan.lucene.readlocks.DistributedSegmentReadLocker

Best Java code snippets using org.infinispan.lucene.readlocks.DistributedSegmentReadLocker.deleteOrReleaseReadLock (Showing top 3 results out of 315)

origin: org.infinispan/infinispan-lucene-directory

 void release() {
   value--;
   if (value <= 0) {
    localLocks.remove(name);
    delegate.deleteOrReleaseReadLock(name);
   }
 }
}
origin: org.infinispan/infinispan-embedded-query

 void release() {
   value--;
   if (value <= 0) {
    localLocks.remove(name);
    delegate.deleteOrReleaseReadLock(name);
   }
 }
}
origin: org.infinispan/infinispan-lucene-v3

 synchronized void release() {
   value--;
   if (value <= 0) {
    localLocks.remove(name);
    delegate.deleteOrReleaseReadLock(name);
   }
 }
}
org.infinispan.lucene.readlocksDistributedSegmentReadLockerdeleteOrReleaseReadLock

Javadoc

Deletes or releases a read-lock for the specified filename, so that if it was marked as deleted and no other InfinispanIndexInput instances are reading from it, then it will be effectively deleted.

Popular methods of DistributedSegmentReadLocker

  • <init>
  • acquireReadLock
    Acquires a readlock on all chunks for this file, to make sure chunks are not deleted while iterating
  • realFileDelete
    The Directory#deleteFile(String) is not deleting the elements from the cache but instead flagging th
  • verifyCacheHasNoEviction
  • isMultiChunked
    Evaluates if the file is potentially being stored as fragmented into multiple chunks; when it's a si

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now