Code example for FileLock

Methods: isSharedisValid

0
        this.write.set( write );
    } 
 
    public boolean isShared() 
    { 
        return this.fileLock.isValid() && this.fileLock.isShared();
    } 
 
    public boolean isValid() 
    { 
        return this.fileLock.isValid();
    } 
 
    public Map<Thread, AtomicInteger> getFileClients()
    { 
        return fileClients;
    } 
 
    public void addFileClient( Thread thread )
    {