public class RwlLocksPool extends Object implements IReusableResourcePool<ReadWriteLock>
Constructor and Description |
---|
RwlLocksPool(int numLocks) |
Modifier and Type | Method and Description |
---|---|
ReadWriteLock |
getResource() |
ReadWriteLock |
getResource(int index) |
int |
size()
get the number of resources in the pool
|
public ReadWriteLock getResource(int index)
getResource
in interface IReusableResourcePool<ReadWriteLock>
public ReadWriteLock getResource()
getResource
in interface IReusableResourcePool<ReadWriteLock>
public int size()
size
in interface IReusableResourcePool<ReadWriteLock>
Copyright © GigaSpaces.