XNIO API 3.0.4.GA

org.xnio
Interface ChannelListener.Setter<T extends Channel>

Type Parameters:
T - the channel type
All Known Implementing Classes:
ChannelListener.SimpleSetter
Enclosing interface:
ChannelListener<T extends Channel>

public static interface ChannelListener.Setter<T extends Channel>

A setter for a channel listener. The indirection is necessary because while covariance is supported on return types, contravariance is not supported on parameters.

Since:
2.0

Method Summary
 void set(ChannelListener<? super T> listener)
          Set the listener, or null to ignore the associated event type.
 

Method Detail

set

void set(ChannelListener<? super T> listener)
Set the listener, or null to ignore the associated event type.

Parameters:
listener - the new listener

XNIO API 3.0.4.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.