public class SimpleSharedUseExclusiveUseLock extends java.lang.Object implements SharedUseExclusiveUseLock
Constructor and Description |
---|
SimpleSharedUseExclusiveUseLock() |
Modifier and Type | Method and Description |
---|---|
void |
acquireExclusive() |
void |
acquireShared() |
void |
relinquishExclusive() |
void |
relinquishShared() |
public void acquireShared() throws java.lang.InterruptedException
acquireShared
in interface SharedUseExclusiveUseLock
java.lang.InterruptedException
public void relinquishShared()
relinquishShared
in interface SharedUseExclusiveUseLock
public void acquireExclusive() throws java.lang.InterruptedException
acquireExclusive
in interface SharedUseExclusiveUseLock
java.lang.InterruptedException
public void relinquishExclusive()
relinquishExclusive
in interface SharedUseExclusiveUseLock