public class SpaceOperationsCoordinator extends Object
| Constructor and Description | 
|---|
SpaceOperationsCoordinator(int numOfSegments)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
beginConcurrentOperation()
Begins a concurrent operation. 
 | 
void | 
beginExclusiveOperation()
Begins a exclusive operation. 
 | 
void | 
endConcurrentOperation()
Ends a concurrent operation which was previously started via  
beginConcurrentOperation(). | 
void | 
endExclusiveOperation()
Ends a exclusive operation which was previously started via  
beginExclusiveOperation(). | 
public void beginConcurrentOperation()
beginExclusiveOperation() was called but endExclusiveOperation() was not called
 yet), invocation is blocked until the exclusive operation is finished. Blocking management is
 fair, i.e. if beginExclusiveOperation() was invoked and blocked, subsequent calls to
 beginConcurrentOperation() will be blocked as well and will be scheduled after the
 exclusive operation. It is the responsibility of the caller to call endConcurrentOperation() when the operation is finished.public void endConcurrentOperation()
beginConcurrentOperation().public void beginExclusiveOperation()
beginConcurrentOperation() was called but endConcurrentOperation() was not
 called yet), invocation is blocked until all concurrent operations are finished. Blocking
 management is fair, i.e. if beginExclusiveOperation() was invoked and blocked,
 subsequent calls to beginConcurrentOperation() will be blocked as well and will be
 scheduled after the exclusive operation. It is the responsibility of the caller to call
 endConcurrentOperation() when the operation is finished.public void endExclusiveOperation()
beginExclusiveOperation().Copyright © GigaSpaces.