W - RQ - RP - public abstract class AbstractAsyncComponent<W extends org.gytheio.content.ContentWorker,RQ extends Request<RP>,RP extends Reply> extends AbstractComponent<W>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractAsyncComponent.LocalQueueProcessor
Takes from the local concurrent queue and hands them off to be processed
|
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executorService |
messageProducer, name, worker| Constructor and Description |
|---|
AbstractAsyncComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
init() |
protected void |
onReceiveImpl(Object message) |
protected abstract void |
processRequest(RQ request)
Performs the actual work for the request.
|
void |
setExecutorService(ExecutorService executorService)
Sets the executor service components may optionally need for running
separate threads.
|
getName, getWorkerVersionDetailsString, getWorkerVersionString, isWorkerAvailable, onReceive, setMessageProducer, setName, setWorker, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConsumingMessageBodyClassprotected ExecutorService executorService
public void setExecutorService(ExecutorService executorService)
executorService - protected void onReceiveImpl(Object message)
onReceiveImpl in class AbstractComponent<W extends org.gytheio.content.ContentWorker>protected abstract void processRequest(RQ request)
request - public void init()
init in class AbstractComponent<W extends org.gytheio.content.ContentWorker>Copyright © 2015 Alfresco Software. All rights reserved.