org.omnaest.utils.operation.decorator
Class OperationDecoratorReentrantLock<RESULT,PARAMETER>
java.lang.Object
org.omnaest.utils.operation.decorator.OperationDecorator<RESULT,PARAMETER>
org.omnaest.utils.operation.decorator.OperationDecoratorReentrantLock<RESULT,PARAMETER>
- Type Parameters:
RESULT - PARAMETER -
- All Implemented Interfaces:
- Operation<RESULT,PARAMETER>
public class OperationDecoratorReentrantLock<RESULT,PARAMETER>
- extends OperationDecorator<RESULT,PARAMETER>
An OperationDecorator which decorates the Operation.execute(Object) invocation with the use of
ReentrantLock.lock().
- Author:
- Omnaest
reentrantLock
protected ReentrantLock reentrantLock
OperationDecoratorReentrantLock
public OperationDecoratorReentrantLock(Operation<RESULT,PARAMETER> operation,
ReentrantLock reentrantLock)
- Parameters:
operation - reentrantLock -
OperationDecoratorReentrantLock
public OperationDecoratorReentrantLock(Operation<RESULT,PARAMETER> operation)
- Parameters:
operation -
execute
public RESULT execute(PARAMETER parameter)
Copyright © 2013. All Rights Reserved.