Example usage for com.google.common.util.concurrent Striped readWriteLock

List of usage examples for com.google.common.util.concurrent Striped readWriteLock

Introduction

In this page you can find the example usage for com.google.common.util.concurrent Striped readWriteLock.

Prototype

public static Striped<ReadWriteLock> readWriteLock(int stripes) 

Source Link

Document

Creates a Striped with eagerly initialized, strongly referenced read-write locks.

Usage

From source file:com.google.devtools.build.lib.concurrent.StripedKeyedLocker.java

public StripedKeyedLocker(int stripes) {
    locks = Striped.readWriteLock(stripes);
}

From source file:org.eclipse.che.commons.lang.concurrent.StripedLocks.java

public StripedLocks(int stripesCount) {
    striped = Striped.readWriteLock(stripesCount);
}