您现在的位置:诗歌范文 > 西方文学 > 正文

ChannelPipeline (Netty API Reference (3.10.6.Final))

ChannelPipeline (Netty API Reference (3.10.6.Final))

,,thecouplingbetweenthechannelandthepipelineispermanent;thechannelcatherthancallinganindividualimplementationsconstructor:.*;pipeline=pipeline();//()Howaneventflowsinapipe/ORequestviaor|+----------------------------------------+---------------+|ChannelPipeline|||\|/||+----------------------++-----------+------------+|||UpstreamHandlerN||DownstreamHandler1|||+----------+-----------++-----------+------------+||/|\||||\|/||+----------+-----------++-----------+------------+|||UpstreamHandlerN-1||DownstreamHandler2|||+----------+-----------++-----------+------------+||/|\.||..||[sendUpstream()][sendDownstream()]||[+INBOUNDdata][+OUTBOUNDdata]||..||.\|/||+----------+-----------++-----------+------------+|||UpstreamHandler2||DownstreamHandlerM-1|||+----------+-----------++-----------+------------+||/|\||||\|/||+----------+-----------++-----------+------------+|||UpstreamHandler1||DownstreamHandlerM|||+----------+-----------++-----------+------------+||/|\||+-------------+--------------------------+---------------+|\|/+-------------+--------------------------+---------------+|||||[()][()]||||NettyInternalI/OThreads(TransportImplementation)|+--------------------------------------------------------+Anupstreameventishandledbytheupstream/,,itishandledbyanI//,letusassumethatwecreatedthefollowingpipeline:p=.pipeline();("1",newUpstreamHandlerA());("2",newUpstreamHandlerB());("3",newDownstreamHandlerA());("4",newDownstreamHandlerB());("5",newUpstreamHandlerX());Intheexampleabove,,thehandlerevaluationorderis1,2,3,4,,theorderis5,4,3,2,,skipstheevaluationofcertainhandlerstoshortenthestackdepth:。

上一篇: webview 报android.database.sqlite.SQLiteCantOpenDatabaseException
下一篇:没有了
回到顶部