Rename HandshakeCompletionEvent to SslHandshakeCompletionEvent

This commit is contained in:
Trustin Lee 2013-04-11 16:50:42 +09:00
parent b3429af1cc
commit e556232aeb
2 changed files with 6 additions and 5 deletions

View File

@ -71,7 +71,7 @@ import java.util.regex.Pattern;
* Beside using the handshake {@link ChannelFuture} to get notified about the completation of the handshake it's
* also possible to detect it by implement the
* {@link ChannelStateHandler#userEventTriggered(ChannelHandlerContext, Object)}
* method and check for a {@link HandshakeCompletionEvent}.
* method and check for a {@link SslHandshakeCompletionEvent}.
*
* <h3>Handshake</h3>
* <p>
@ -179,7 +179,7 @@ public class SslHandler
private volatile long handshakeTimeoutMillis = 10000;
private volatile long closeNotifyTimeoutMillis = 3000;
private static final HandshakeCompletionEvent HANDSHAKE_SUCCESS_EVENT = new HandshakeCompletionEvent(null);
private static final SslHandshakeCompletionEvent HANDSHAKE_SUCCESS_EVENT = new SslHandshakeCompletionEvent(null);
/**
* Creates a new instance.
@ -1016,7 +1016,7 @@ public class SslHandler
}
}
} finally {
ctx.fireUserEventTriggered(new HandshakeCompletionEvent(cause));
ctx.fireUserEventTriggered(new SslHandshakeCompletionEvent(cause));
}
flush0(ctx, 0, cause);
}

View File

@ -20,10 +20,11 @@ package io.netty.handler.ssl;
* Event that is fired once the SSL handshake is complete, which may be because it was successful or there
* was an error.
*/
public final class HandshakeCompletionEvent {
public final class SslHandshakeCompletionEvent {
private final Throwable cause;
HandshakeCompletionEvent(Throwable cause) {
SslHandshakeCompletionEvent(Throwable cause) {
this.cause = cause;
}