protected class BackgroundLoadSave.QueueLoader extends Object implements Runnable
| Constructor and Description |
|---|
QueueLoader(String name,
int type,
FileRequestQueue queue,
Object lock)
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkRequestQueue()
Check the request queue status and wakeup the loader thread if required
|
boolean |
isLoading()
Check if there is a file request record load in progress
|
void |
notifyNewRecord(int seqNo)
Notify the queue loader that a new record has been added to the database
|
void |
run()
Run the thread
|
void |
shutdownRequest()
Request the worker thread to shutdown
|
public QueueLoader(String name, int type, FileRequestQueue queue, Object lock)
name - Stringtype - intqueue - FileRequestQueuelock - Objectpublic final void shutdownRequest()
public final boolean isLoading()
public final void notifyNewRecord(int seqNo)
seqNo - intpublic final void checkRequestQueue()
Copyright © 2005–2020 Alfresco Software. All rights reserved.