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.
|
void |
onComplete(String response,
boolean error,
String errorMessage,
String stackTrace,
String statusCode,
int statusCodeInt)
On complete.
|
void |
onReceive(Object message) |
static void |
setLogger(org.slf4j.Logger logger)
Sets the logger.
|
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 static org.slf4j.Logger getLogger()
public static void setLogger(org.slf4j.Logger logger)
logger - the new loggerCopyright © 2015–2016 eBay. All rights reserved.