public class DefaultHttp2StreamRemovalPolicy extends io.netty.channel.ChannelHandlerAdapter implements Http2StreamRemovalPolicy, Runnable
Http2StreamRemovalPolicy that periodically runs garbage collection on streams that have
been marked for removal.Http2StreamRemovalPolicy.Action| Constructor and Description |
|---|
DefaultHttp2StreamRemovalPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
void |
handlerRemoved(io.netty.channel.ChannelHandlerContext ctx) |
void |
markForRemoval(Http2Stream stream)
Marks the given stream for removal.
|
void |
run()
Runs garbage collection of any streams marked for removal >
GARBAGE_COLLECTION_INTERVAL nanoseconds ago. |
void |
setAction(Http2StreamRemovalPolicy.Action action)
Sets the removal action.
|
bind, channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, exceptionCaught, flush, isSharable, read, userEventTriggered, writepublic void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerAdded in interface io.netty.channel.ChannelHandlerhandlerAdded in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void handlerRemoved(io.netty.channel.ChannelHandlerContext ctx)
throws Exception
handlerRemoved in interface io.netty.channel.ChannelHandlerhandlerRemoved in class io.netty.channel.ChannelHandlerAdapterExceptionpublic void setAction(Http2StreamRemovalPolicy.Action action)
Http2StreamRemovalPolicysetAction in interface Http2StreamRemovalPolicypublic void markForRemoval(Http2Stream stream)
Http2StreamRemovalPolicyHttp2StreamRemovalPolicy.Action.markForRemoval in interface Http2StreamRemovalPolicypublic void run()
GARBAGE_COLLECTION_INTERVAL nanoseconds ago.Copyright © 2008–2015 The Netty Project. All rights reserved.