public class HttpWorker
extends akka.actor.UntypedActor
| Constructor and Description |
|---|
HttpWorker(int actorMaxOperationTimeoutSec,
com.ning.http.client.AsyncHttpClient client,
String requestUrl,
HttpMethod httpMethod,
String postData,
Map<String,String> httpHeaderMap,
ResponseHeaderMeta responseHeaderMeta)
Instantiates a new http worker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCancellable()
Cancel cancellable.
|
com.ning.http.client.AsyncHttpClient.BoundRequestBuilder |
createRequest()
Creates the request.
|
static org.slf4j.Logger |
getLogger()
Gets the logger.
|
ResponseOnSingeRequest |
onComplete(com.ning.http.client.Response response)
On complete.
|
void |
onReceive(Object message) |
void |
onThrowable(Throwable cause)
On throwable.
|
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 HttpWorker(int actorMaxOperationTimeoutSec,
com.ning.http.client.AsyncHttpClient client,
String requestUrl,
HttpMethod httpMethod,
String postData,
Map<String,String> httpHeaderMap,
ResponseHeaderMeta responseHeaderMeta)
actorMaxOperationTimeoutSec - the actor max operation timeout secclient - the clientrequestUrl - the request urlhttpMethod - the http methodpostData - the post datahttpHeaderMap - the http header mapresponseHeaderMeta - the response header metapublic com.ning.http.client.AsyncHttpClient.BoundRequestBuilder createRequest()
throws HttpRequestCreateException
HttpRequestCreateException - the http request create exceptionpublic void onReceive(Object message) throws Exception
onReceive in class akka.actor.UntypedActorExceptionpublic void cancelCancellable()
public ResponseOnSingeRequest onComplete(com.ning.http.client.Response response)
response - the responsepublic void onThrowable(Throwable cause)
cause - the causepublic static org.slf4j.Logger getLogger()
public static void setLogger(org.slf4j.Logger logger)
logger - the new loggerCopyright © 2015–2017 eBay. All rights reserved.