-
- All Implemented Interfaces:
-
ai.platon.pulsar.common.config.KConfigurable,ai.platon.pulsar.experimental.transport.ChannelHandlerContext
public final class UrlContext extends AbstractChannelHandlerContext
-
-
Field Summary
Fields Modifier and Type Field Description private final Channelchannelprivate final Stringurlprivate ChannelHandlerhandlerprivate ImmutableConfigconfprivate ChannelHandlerContextprevprivate ChannelHandlerContextnextprivate final DefaultChannelPipelinepipelineprivate final ExecutorServiceexecutorprivate final Stringname
-
Constructor Summary
Constructors Constructor Description UrlContext(String url, DefaultChannelPipeline pipeline, ExecutorService executor, String name, ChannelHandler handler)
-
Method Summary
Modifier and Type Method Description ChannelgetChannel()final StringgetUrl()ChannelHandlergetHandler()UnitsetHandler(ChannelHandler handler)ImmutableConfiggetConf()UnitsetConf(ImmutableConfig conf)ChannelHandlerContextgetPrev()UnitsetPrev(ChannelHandlerContext prev)ChannelHandlerContextgetNext()UnitsetNext(ChannelHandlerContext next)DefaultChannelPipelinegetPipeline()ExecutorServicegetExecutor()StringgetName()-
Methods inherited from class ai.platon.pulsar.experimental.transport.crawl.UrlContext
fireChannelRead, fireChannelReadComplete, fireExceptionCaught, fireUserEventTriggered, flush, read -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
UrlContext
UrlContext(String url, DefaultChannelPipeline pipeline, ExecutorService executor, String name, ChannelHandler handler)
-
-
Method Detail
-
getChannel
Channel getChannel()
-
getHandler
ChannelHandler getHandler()
-
setHandler
Unit setHandler(ChannelHandler handler)
-
getConf
ImmutableConfig getConf()
-
getPrev
ChannelHandlerContext getPrev()
-
setPrev
Unit setPrev(ChannelHandlerContext prev)
-
getNext
ChannelHandlerContext getNext()
-
setNext
Unit setNext(ChannelHandlerContext next)
-
getPipeline
DefaultChannelPipeline getPipeline()
-
getExecutor
ExecutorService getExecutor()
-
-
-
-