public class ThreadedWriter extends Object
Allows a network protocol handler to queue a write request to a thread pool for delayed writing.
Modifier and Type | Class and Description |
---|---|
protected class |
ThreadedWriter.ThreadWorker
Thread Worker Inner Class
|
Modifier and Type | Field and Description |
---|---|
static int |
DefaultWorkerThreads |
static int |
MaximumWorkerThreads |
static int |
MinimumWorkerThreads |
Constructor and Description |
---|
ThreadedWriter()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addWriteRequest(WriteRequest req)
Add a delayed write request to the queue
|
static boolean |
hasDebug()
Check if debug output is enabled
|
void |
shutdownWriter()
Shutdown the threaded writer and release all resources
|
public static final int DefaultWorkerThreads
public static final int MinimumWorkerThreads
public static final int MaximumWorkerThreads
public static final boolean hasDebug()
public final void addWriteRequest(WriteRequest req)
req
- WriteRequestpublic void shutdownWriter()
Copyright © 2005–2017 Alfresco Software. All rights reserved.