public class WriteRequestQueue extends 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 InterruptedException
InterruptedExceptionpublic final void waitWhileEmpty()
throws InterruptedException
InterruptedExceptionpublic final void waitUntilEmpty()
throws InterruptedException
InterruptedExceptionCopyright © 2005–2015 Alfresco Software. All rights reserved.