XNIO API 2.1.0.CR2

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

Type Parameters:
T - the channel type
All Superinterfaces:
EventListener

public interface ChannelListener<T extends Channel>
extends EventListener

A listener for channel events. Possible channel events include: channel readable, channel writable, channel opened, channel closed, channel bound, channel unbound.

Since:
2.0

Nested Class Summary
static interface ChannelListener.Setter<T extends Channel>
          A setter for a channel listener.
 
Method Summary
 void handleEvent(T channel)
          Handle the event on this channel.
 

Method Detail

handleEvent

void handleEvent(T channel)
Handle the event on this channel.

Parameters:
channel - the channel event

XNIO API 2.1.0.CR2

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