Filled in JavaDoc for trivial methods
This commit is contained in:
parent
38b3f4fa98
commit
6b004f861b
@ -36,6 +36,9 @@ public class DefaultChannelEvent implements ChannelEvent {
|
||||
private final Channel channel;
|
||||
private final ChannelFuture future;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
public DefaultChannelEvent(Channel channel, ChannelFuture future) {
|
||||
if (channel == null) {
|
||||
throw new NullPointerException("channel");
|
||||
@ -55,6 +58,9 @@ public class DefaultChannelEvent implements ChannelEvent {
|
||||
return future;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link String} representation of this event.
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return channel.toString();
|
||||
|
@ -37,6 +37,9 @@ public class DefaultChannelStateEvent extends DefaultChannelEvent implements
|
||||
private final ChannelState state;
|
||||
private final Object value;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
public DefaultChannelStateEvent(
|
||||
Channel channel, ChannelFuture future,
|
||||
ChannelState state, Object value) {
|
||||
|
@ -36,6 +36,9 @@ public class DefaultChildChannelStateEvent extends DefaultChannelEvent implement
|
||||
|
||||
private final Channel childChannel;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
public DefaultChildChannelStateEvent(
|
||||
Channel channel, ChannelFuture future, Channel childChannel) {
|
||||
|
||||
|
@ -38,6 +38,9 @@ public class DefaultExceptionEvent extends DefaultChannelEvent implements
|
||||
|
||||
private final Throwable cause;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
public DefaultExceptionEvent(Channel channel, ChannelFuture future, Throwable cause) {
|
||||
super(channel, future);
|
||||
if (cause == null) {
|
||||
|
@ -43,6 +43,9 @@ public class DefaultMessageEvent extends DefaultChannelEvent implements
|
||||
private final Object message;
|
||||
private final SocketAddress remoteAddress;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
public DefaultMessageEvent(
|
||||
Channel channel, ChannelFuture future,
|
||||
Object message, SocketAddress remoteAddress) {
|
||||
|
@ -65,6 +65,13 @@ public class SimpleChannelHandler implements ChannelUpstreamHandler {
|
||||
private static final InternalLogger logger =
|
||||
InternalLoggerFactory.getInstance(SimpleChannelHandler.class.getName());
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
*/
|
||||
public SimpleChannelHandler() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc} Down-casts the received upstream event into more
|
||||
* meaningful sub-type event and calls an appropriate handler method with
|
||||
|
Loading…
Reference in New Issue
Block a user