public boolean doesObjectExist()

in src/main/java/org/elasticsearch/aliyun/oss/service/OssStorageClient.java [89:101]


    public boolean doesObjectExist(String bucketName, String key)
        throws OSSException, ClientException {
        if (isStsOssClient) {
            readWriteLock.readLock().lock();
            try {
                return this.client.doesObjectExist(bucketName, key);
            } finally {
                readWriteLock.readLock().unlock();
            }
        } else {
            return this.client.doesObjectExist(bucketName, key);
        }
    }