public class FileRequestQueue
extends java.lang.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 java.lang.InterruptedException
java.lang.InterruptedException
public final FileRequest removeRequestNoWait()
public final void removeAllRequests()
public final void waitWhileEmpty() throws java.lang.InterruptedException
java.lang.InterruptedException
public final void waitUntilEmpty() throws java.lang.InterruptedException
java.lang.InterruptedException
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.