public class FileRequestQueue extends Object
Synchronized queue of FileRequest objects.
| Constructor and Description |
|---|
FileRequestQueue()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRequest(FileRequest req)
Add a request to the queue
|
int |
numberOfRequests()
Return the number of requests in the queue
|
void |
removeAllRequests()
Remove all requests from the queue
|
FileRequest |
removeRequest()
Remove a request from the head of the queue
|
FileRequest |
removeRequestNoWait()
Remove a request from the head of the queue without waiting
|
void |
waitUntilEmpty()
Wait for the file request queue to be emptied
|
void |
waitWhileEmpty()
Wait for a file request to be added to the queue
|
public final int numberOfRequests()
public final void addRequest(FileRequest req)
req - FileRequestpublic final FileRequest removeRequest() throws InterruptedException
InterruptedExceptionpublic final FileRequest removeRequestNoWait()
public final void removeAllRequests()
public final void waitWhileEmpty()
throws InterruptedException
InterruptedExceptionpublic final void waitUntilEmpty()
throws InterruptedException
InterruptedExceptionCopyright © 2005–2015 Alfresco Software. All rights reserved.