public class WriteRequestQueue
extends java.lang.Object
| Constructor and Description |
|---|
WriteRequestQueue()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequest(WriteRequest req)
Add a request to the queue
|
int |
numberOfRequests()
Return the number of requests in the queue
|
WriteRequest |
removeRequest()
Remove a request from the head of the queue
|
void |
waitUntilEmpty()
Wait for the file request queue to be emptied
|
void |
waitWhileEmpty()
Wait for a write request to be added to the queue
|
public final int numberOfRequests()
public final void addRequest(WriteRequest req)
req - WriteRequestpublic final WriteRequest removeRequest() throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic final void waitWhileEmpty()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic final void waitUntilEmpty()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.