public abstract class WhileLockedProcessor
extends java.lang.Object
Lock
provided by
LockRegistry
A typical usage would be to provide implementation of whileLocked()
method and
then call doWhileLocked()
Constructor and Description |
---|
WhileLockedProcessor(LockRegistry lockRegistry,
java.lang.Object key) |
Modifier and Type | Method and Description |
---|---|
void |
doWhileLocked() |
protected abstract void |
whileLocked()
Override this method to provide the behavior that needs to be executed
while under lock
|
public WhileLockedProcessor(LockRegistry lockRegistry, java.lang.Object key)
public final void doWhileLocked() throws java.io.IOException
java.io.IOException
protected abstract void whileLocked() throws java.io.IOException
java.io.IOException