@InterfaceAudience.Private public interface InterProcessReadWriteLock
Modifier and Type | Method and Description |
---|---|
InterProcessLock |
readLock(byte[] metadata)
Obtain a read lock containing given metadata.
|
InterProcessLock |
writeLock(byte[] metadata)
Obtain a write lock containing given metadata.
|
InterProcessLock readLock(byte[] metadata)
metadata
- Serialized lock metadata (this may contain information
such as the process owning the lock or the purpose for
which the lock was acquired).InterProcessLock writeLock(byte[] metadata)
metadata
- Serialized lock metadata (this may contain information
such as the process owning the lock or the purpose for
which the lock was acquired).Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.