public class SourceTagHandlerImpl extends io.netty.channel.SimpleChannelInboundHandler<String> implements SourceTagHandler
Modifier and Type | Field and Description |
---|---|
protected PostSourceTagTimedTask[] |
sendDataTasks |
Constructor and Description |
---|
SourceTagHandlerImpl(PostSourceTagTimedTask[] tasks) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
String msg)
This method will read the input over the socket.
|
PostSourceTagTimedTask |
getRandomPostTask() |
void |
reportSourceTags(List<ReportSourceTag> sourceTags)
This method will call the server-side APIs to set/remove the sourceTag/description.
|
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
protected final PostSourceTagTimedTask[] sendDataTasks
public SourceTagHandlerImpl(PostSourceTagTimedTask[] tasks)
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, String msg) throws Exception
public void reportSourceTags(List<ReportSourceTag> sourceTags)
reportSourceTags
in interface SourceTagHandler
public PostSourceTagTimedTask getRandomPostTask()
Copyright © 2017. All rights reserved.