Class OcspClient.Initializer
java.lang.Object
- All Implemented Interfaces:
ChannelHandler, ChannelInboundHandler
- Enclosing class:
OcspClient
-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Promise<org.bouncycastle.cert.ocsp.OCSPResp> private final long -
Constructor Summary
ConstructorsConstructorDescriptionInitializer(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise, long timeoutMillis) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinitChannel(SocketChannel socketChannel) This method will be called once theChannelwas registered.Methods inherited from class ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedMethods inherited from class ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggeredMethods inherited from class ChannelHandlerAdapter
ensureNotSharable, isSharable
-
Field Details
-
responsePromise
-
timeoutMillis
private final long timeoutMillis
-
-
Constructor Details
-
Initializer
Initializer(Promise<org.bouncycastle.cert.ocsp.OCSPResp> responsePromise, long timeoutMillis)
-
-
Method Details
-
initChannel
Description copied from class:ChannelInitializerThis method will be called once theChannelwas registered. After the method returns this instance will be removed from theChannelPipelineof theChannel.- Specified by:
initChannelin classChannelInitializer<SocketChannel>- Parameters:
socketChannel- theChannelwhich was registered.
-