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
InterruptedException
public final void waitWhileEmpty() throws InterruptedException
InterruptedException
public final void waitUntilEmpty() throws InterruptedException
InterruptedException
Copyright © 2005–2017 Alfresco Software. All rights reserved.