net.officefloor.plugin.comet.section
Class PublishWorkSource.PublishTask

java.lang.Object
  extended by net.officefloor.frame.util.AbstractSingleTask<PublishWorkSource.PublishTask,PublishWorkSource.Dependencies,Indexed>
      extended by net.officefloor.plugin.comet.section.PublishWorkSource.PublishTask
All Implemented Interfaces:
TaskFactory<PublishWorkSource.PublishTask,PublishWorkSource.Dependencies,Indexed>, WorkFactory<PublishWorkSource.PublishTask>, Task<PublishWorkSource.PublishTask,PublishWorkSource.Dependencies,Indexed>, Work
Enclosing class:
PublishWorkSource

public static class PublishWorkSource.PublishTask
extends AbstractSingleTask<PublishWorkSource.PublishTask,PublishWorkSource.Dependencies,Indexed>

Task to handle CometPublicationService.


Constructor Summary
PublishWorkSource.PublishTask(Map<String,Integer> requestUriPrefixToFlowIndex)
          Initiate.
 
Method Summary
 Object doTask(TaskContext<PublishWorkSource.PublishTask,PublishWorkSource.Dependencies,Indexed> context)
          Does the task.
 
Methods inherited from class net.officefloor.frame.util.AbstractSingleTask
createTask, createWork, getRecycleManagedObjectParameter, registerAsRecycleTask, registerTask, registerTask, registerTask, registerWork
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublishWorkSource.PublishTask

public PublishWorkSource.PublishTask(Map<String,Integer> requestUriPrefixToFlowIndex)
Initiate.

Parameters:
requestUriPrefixToFlowIndex - Mapping of request URI prefix to flow index.
Method Detail

doTask

public Object doTask(TaskContext<PublishWorkSource.PublishTask,PublishWorkSource.Dependencies,Indexed> context)
Description copied from interface: Task
Does the task.

Parameters:
context - TaskContext for the Task.
Returns:
Parameter for the next Task. This allows stringing Task instances together into a JobSequence.


Copyright © 2005-2013. All Rights Reserved.