2003-09-25 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/DatagramChannelImpl.java (getNativeFD): New method. * gnu/java/nio/SelectionKeyImpl.java (SelectionKeyImpl): Class made abstract. (fd): Removed. (SelectionKeyImpl): Remove fd argument. (getNativeFD): New method. * gnu/java/nio/SocketChannelImpl.java (getNativeFD): New method. gnu/java/nio/DatagramChannelSelectionKey.java, * gnu/java/nio/SocketChannelSelectionKey.java: New files. * Makefile.am (ordinary_java_source_files): Added new files gnu/java/nio/DatagramChannelSelectionKey.java and gnu/java/nio/SocketChannelSelectionKey.java. * Makefile.in: Regenerated. From-SVN: r71797
This commit is contained in:
parent
73a1415eb4
commit
1bfb64ff9a
8 changed files with 154 additions and 4 deletions
|
@ -43,19 +43,17 @@ import java.nio.channels.SelectionKey;
|
|||
import java.nio.channels.Selector;
|
||||
import java.nio.channels.spi.AbstractSelectionKey;
|
||||
|
||||
public class SelectionKeyImpl extends AbstractSelectionKey
|
||||
public abstract class SelectionKeyImpl extends AbstractSelectionKey
|
||||
{
|
||||
int fd;
|
||||
private int readyOps;
|
||||
private int interestOps;
|
||||
private SelectorImpl impl;
|
||||
private SelectableChannel ch;
|
||||
|
||||
public SelectionKeyImpl (SelectableChannel ch, SelectorImpl impl, int fd)
|
||||
public SelectionKeyImpl (SelectableChannel ch, SelectorImpl impl)
|
||||
{
|
||||
this.ch = ch;
|
||||
this.impl = impl;
|
||||
this.fd = fd;
|
||||
}
|
||||
|
||||
public SelectableChannel channel ()
|
||||
|
@ -101,4 +99,6 @@ public class SelectionKeyImpl extends AbstractSelectionKey
|
|||
{
|
||||
return impl;
|
||||
}
|
||||
|
||||
public abstract int getNativeFD();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue