protected class BackgroundLoadSave.QueueLoader extends Object implements Runnable
Constructor and Description |
---|
BackgroundLoadSave.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 BackgroundLoadSave.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–2017 Alfresco Software. All rights reserved.