Package io.netty.handler.ssl
Class SslHandler.SslTasksRunner
- java.lang.Object
-
- io.netty.handler.ssl.SslHandler.SslTasksRunner
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- SslHandler
private final class SslHandler.SslTasksRunner extends java.lang.Object implements java.lang.RunnableRunnablethat will be scheduled on thedelegatedTaskExecutorand will take care of resume work on theEventExecutoronce the task was executed.
-
-
Field Summary
Fields Modifier and Type Field Description private booleaninUnwrapprivate java.lang.RunnablerunCompleteTask
-
Constructor Summary
Constructors Constructor Description SslTasksRunner(boolean inUnwrap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidhandleException(java.lang.Throwable cause)private voidresumeIfNoTaskIsPending()Called whenSSLEngine.getDelegatedTask()returnednull.private voidresumeOnEventExecutor()Executed after the wrappedtaskwas executed viadelegatedTaskExecutorto resume work on theEventExecutor.voidrun()(package private) voidrunComplete()private voidsafeExceptionCaught(java.lang.Throwable cause)private voidtaskError(java.lang.Throwable e)private voidtryDecodeAgain()private java.lang.ThrowablewrapIfNeeded(java.lang.Throwable cause)
-
-
-
Method Detail
-
taskError
private void taskError(java.lang.Throwable e)
-
safeExceptionCaught
private void safeExceptionCaught(java.lang.Throwable cause)
-
wrapIfNeeded
private java.lang.Throwable wrapIfNeeded(java.lang.Throwable cause)
-
tryDecodeAgain
private void tryDecodeAgain()
-
resumeOnEventExecutor
private void resumeOnEventExecutor()
Executed after the wrappedtaskwas executed viadelegatedTaskExecutorto resume work on theEventExecutor.
-
runComplete
void runComplete()
-
resumeIfNoTaskIsPending
private void resumeIfNoTaskIsPending()
Called whenSSLEngine.getDelegatedTask()returnednull. We only ever run one task at a time (guarded bySTATE_PROCESS_TASK), so nobody else will resume for us. If we were not resumed yet, resume now on theEventExecutor.
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
handleException
private void handleException(java.lang.Throwable cause)
-
-