public abstract static class ServiceDispatcher.ExecutingRunnable
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.channels.SocketChannel |
channel |
protected boolean |
expectResponse |
protected TextProtocol |
protocol |
| Constructor and Description |
|---|
ServiceDispatcher.ExecutingRunnable(java.nio.channels.SocketChannel channel,
TextProtocol protocol,
boolean expectResponse) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract TextProtocol.ResponseMessage |
getResponse(TextProtocol.RequestMessage request) |
protected abstract void |
logMessage(java.lang.String message) |
void |
run() |
protected final java.nio.channels.SocketChannel channel
protected final TextProtocol protocol
protected final boolean expectResponse
public ServiceDispatcher.ExecutingRunnable(java.nio.channels.SocketChannel channel,
TextProtocol protocol,
boolean expectResponse)
public void run()
run in interface java.lang.Runnableprotected abstract TextProtocol.ResponseMessage getResponse(TextProtocol.RequestMessage request) throws java.io.IOException
java.io.IOExceptionprotected abstract void logMessage(java.lang.String message)
Copyright (c) 2004-2012 Oracle. All rights reserved.