net.officefloor.plugin.socket.server.tcp.protocol
Class CleanupTask

java.lang.Object
  extended by net.officefloor.frame.util.AbstractSingleTask<Work,None,None>
      extended by net.officefloor.plugin.socket.server.tcp.protocol.CleanupTask
All Implemented Interfaces:
TaskFactory<Work,None,None>, WorkFactory<Work>, Task<Work,None,None>, Work

public class CleanupTask
extends AbstractSingleTask<Work,None,None>

Cleans up the ServerTcpConnection.

Author:
Daniel Sagenschneider

Constructor Summary
CleanupTask()
           
 
Method Summary
 Object doTask(TaskContext<Work,None,None> 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

CleanupTask

public CleanupTask()
Method Detail

doTask

public Object doTask(TaskContext<Work,None,None> context)
              throws Throwable
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.
Throws:
Throwable - Indicating failure of the Task.


Copyright © 2005-2013. All Rights Reserved.