public abstract class S3NettyBaseTask extends Object
Modifier and Type | Class and Description |
---|---|
static class |
S3NettyBaseTask.OpTag
Enum for tagging the http request to target for
different threadpools for handling.
|
static class |
S3NettyBaseTask.OpType
Enum indicating name of S3 API handling per http request.
|
Modifier and Type | Field and Description |
---|---|
protected S3NettyHandler |
mHandler |
protected S3NettyBaseTask.OpType |
mOPType |
Constructor and Description |
---|
S3NettyBaseTask(S3NettyHandler handler,
S3NettyBaseTask.OpType OPType)
Creates an instance of
S3NettyBaseTask . |
Modifier and Type | Method and Description |
---|---|
abstract io.netty.handler.codec.http.HttpResponse |
continueTask()
Run core S3 API logic from different S3 task.
|
S3NettyBaseTask.OpType |
getOPType()
Return the OpType (S3 API enum).
|
io.netty.handler.codec.http.HttpResponse |
handleContent(io.netty.handler.codec.http.HttpContent content)
Run core S3 API logic with HttpContent in different S3 task.
|
void |
handleTaskAsync()
Run S3 API logic in a customized async way, e.g.
|
boolean |
needContent()
Return if the S3 API needs to process the content.
|
protected final S3NettyHandler mHandler
protected final S3NettyBaseTask.OpType mOPType
public S3NettyBaseTask(S3NettyHandler handler, S3NettyBaseTask.OpType OPType)
S3NettyBaseTask
.handler
- S3NettyHandlerOPType
- op typepublic S3NettyBaseTask.OpType getOPType()
public abstract io.netty.handler.codec.http.HttpResponse continueTask()
public io.netty.handler.codec.http.HttpResponse handleContent(io.netty.handler.codec.http.HttpContent content)
content
- HttpContentpublic boolean needContent()
public void handleTaskAsync()
Copyright © 2023. All Rights Reserved.