diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rep/channel/NullSelector.java	Sat Oct 04 22:12:34 2008 +0900
@@ -0,0 +1,56 @@
+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;
+	}
+
+}