public class UdpWorker
extends akka.actor.UntypedActor
| Modifier and Type | Class and Description |
|---|---|
static class |
UdpWorker.MyIdleHandler
how to pass the idle event back to the worker.
|
static class |
UdpWorker.UdpChannelHandler
The Netty response/channel handler.
|
static class |
UdpWorker.UdpPipelineFactory
define the list of handlers for this channel.
|
| Constructor and Description |
|---|
UdpWorker(int actorMaxOperationTimeoutSec,
UdpMeta udpMeta,
String targetHost)
Instantiates a new udp worker.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.bootstrap.ConnectionlessBootstrap |
bootStrapUdpClient()
Creates the udpClient 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.ConnectionlessBootstrap bootStrapUdpClient()
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.