protected class BackgroundLoadSave.QueueLoader
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
BackgroundLoadSave.QueueLoader(java.lang.String name,
int type,
FileRequestQueue queue,
java.lang.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(java.lang.String name, int type, FileRequestQueue queue, java.lang.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()
public void run()
run
in interface java.lang.Runnable
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.