public class ServerSocketAccepter extends AbstractSingleTask<ServerSocketAccepter,None,None>
Connection
instances.Constructor and Description |
---|
ServerSocketAccepter(InetSocketAddress serverSocketAddress,
CommunicationProtocol communicationProtocol,
ConnectionManager connectionManager,
int serverSocketBackLogSize)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
Object |
doTask(TaskContext<ServerSocketAccepter,None,None> context)
Does the task.
|
createTask, createWork, getRecycleManagedObjectParameter, registerAsRecycleTask, registerTask, registerTask, registerTask, registerWork
public ServerSocketAccepter(InetSocketAddress serverSocketAddress, CommunicationProtocol communicationProtocol, ConnectionManager connectionManager, int serverSocketBackLogSize) throws IOException
serverSocketAddress
- InetSocketAddress
to listen for connections.communicationProtocol
- CommunicationProtocol
for the ServerSocket
.connectionManager
- ConnectionManager
.serverSocketBackLogSize
- ServerSocket
back log size.IOException
- If fails to set up the ServerSocket
.public Object doTask(TaskContext<ServerSocketAccepter,None,None> context) throws Exception
Task
context
- TaskContext
for the Task
.Task
. This allows stringing
Task
instances together into a JobSequence
.Exception
Copyright © 2005–2016. All rights reserved.