public class TcpWorker
extends akka.actor.UntypedActor
| Modifier and Type | Class and Description |
|---|---|
static class |
TcpWorker.MyIdleHandler
how to pass the idle event back to the worker.
|
static class |
TcpWorker.MyPipelineFactory
define the list of handlers for this channel.
|
static class |
TcpWorker.TcpChannelHandler
The Netty response/channel handler.
|
| Constructor and Description |
|---|
TcpWorker(int actorMaxOperationTimeoutSec,
TcpMeta tcpMeta,
String targetHost)
Instantiates a new tcp worker.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.bootstrap.ClientBootstrap |
bootStrapTcpClient()
Creates the tcpClient with proper handler.
|
void |
cancelCancellable()
Cancel cancellable.
|
static org.slf4j.Logger |
getLogger()
Gets the logger.
|
StringBuilder |
getResponseSb()
Gets the response sb.
|
void |
onComplete(String response,
boolean error,
String errorMessage,
String stackTrace,
String statusCode,
int statusCodeInt)
On complete.
|
void |
onReceive(Object message) |
void |
onThrowable(Throwable cause)
On throwable.
|
static void |
setLogger(org.slf4j.Logger logger)
Sets the logger.
|
void |
setResponseSb(StringBuilder responseSb)
Sets the response sb.
|
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, getContext, getSelf, getSender, postRestart, postStop, preRestart, preStart, receive, self, sender, supervisorStrategy, unhandledpublic org.jboss.netty.bootstrap.ClientBootstrap bootStrapTcpClient()
throws HttpRequestCreateException
HttpRequestCreateException - the http request create exceptionpublic void onReceive(Object message) throws Exception
onReceive in class akka.actor.UntypedActorExceptionpublic void cancelCancellable()
public void onComplete(String response, boolean error, String errorMessage, String stackTrace, String statusCode, int statusCodeInt)
response - the responseerror - the errorerrorMessage - the error messagestackTrace - the stack tracestatusCode - the status codestatusCodeInt - the status code intpublic void onThrowable(Throwable cause)
cause - the causepublic static org.slf4j.Logger getLogger()
public static void setLogger(org.slf4j.Logger logger)
logger - the new loggerpublic StringBuilder getResponseSb()
public void setResponseSb(StringBuilder responseSb)
responseSb - the new response sbCopyright © 2015 eBay. All rights reserved.