XNIO API 3.0.7.GA

org.xnio
Class ChannelListener.SimpleSetter<T extends Channel>

java.lang.Object
  extended by org.xnio.ChannelListener.SimpleSetter<T>
Type Parameters:
T - the channel type
All Implemented Interfaces:
ChannelListener.Setter<T>
Enclosing interface:
ChannelListener<T extends Channel>

public static class ChannelListener.SimpleSetter<T extends Channel>
extends Object
implements ChannelListener.Setter<T>

A simple implementation of ChannelListener.Setter.

Since:
3.0

Constructor Summary
ChannelListener.SimpleSetter()
           
 
Method Summary
 ChannelListener<? super T> get()
          Get the channel listener set on this setter.
 void set(ChannelListener<? super T> listener)
          Set the listener, or null to ignore the associated event type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelListener.SimpleSetter

public ChannelListener.SimpleSetter()
Method Detail

set

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

Specified by:
set in interface ChannelListener.Setter<T extends Channel>
Parameters:
listener - the new listener

get

public ChannelListener<? super T> get()
Get the channel listener set on this setter.

Returns:
the channel listener

XNIO API 3.0.7.GA

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