view rep/channel/NullSelector.java @ 308:c5be84d53c7f channel-simulator-update **INVALID**

*** empty log message ***
author kono
date Sat, 04 Oct 2008 22:12:34 +0900
parents
children
line wrap: on
line source

package rep.channel;

import java.io.IOException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;
import java.nio.channels.spi.SelectorProvider;
import java.util.Set;

public class NullSelector extends Selector {

	@Override
	public void close() throws IOException {
		
	}

	@Override
	public boolean isOpen() {
		return false;
	}

	@Override
	public Set<SelectionKey> keys() {
		return null;
	}

	@Override
	public SelectorProvider provider() {
		return null;
	}

	@Override
	public int select() throws IOException {
		return 0;
	}

	@Override
	public int select(long timeout) throws IOException {
		return 0;
	}

	@Override
	public int selectNow() throws IOException {
		return 0;
	}

	@Override
	public Set<SelectionKey> selectedKeys() {
		return null;
	}

	@Override
	public Selector wakeup() {
		return this;
	}

}