IOEventRegister.java 2.7 KB
Newer Older
Y
yunyao.zxl 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
package sun.nio.ch;

import sun.misc.SharedSecrets;

import java.io.IOException;

public class IOEventRegister {

    static {
        SharedSecrets.setIOEventAccess(new IOEventAccess() {

            @Override
            public int eventCtlAdd() {
                throw new UnsupportedOperationException();
            }

            @Override
            public int eventCtlDel() {
                throw new UnsupportedOperationException();
            }

            @Override
            public int eventCtlMod() {
                throw new UnsupportedOperationException();
            }

            @Override
            public int eventOneShot() {
                throw new UnsupportedOperationException();
            }

            @Override
            public int noEvent() {
                throw new UnsupportedOperationException();
            }

            @Override
            public long allocatePollArray(int count) {
                throw new UnsupportedOperationException();
            }

            @Override
            public void freePollArray(long address) {
                throw new UnsupportedOperationException();
            }

            @Override
            public long getEvent(long address, int i) {
                throw new UnsupportedOperationException();
            }

            @Override
            public int getDescriptor(long eventAddress) {
                throw new UnsupportedOperationException();
            }

            @Override
            public int getEvents(long eventAddress) {
                throw new UnsupportedOperationException();
            }

            @Override
            public int eventCreate() throws IOException {
                throw new UnsupportedOperationException();
            }

            @Override
            public int eventCtl(int epfd, int opcode, int fd, int events) {
                throw new UnsupportedOperationException();
            }

            @Override
            public int eventWait(int epfd, long pollAddress, int numfds, int timeout) throws IOException {
                throw new UnsupportedOperationException();
            }

            @Override
            public void socketpair(int[] sv) throws IOException {
                throw new UnsupportedOperationException();
            }

            @Override
            public void interrupt(int fd) throws IOException {
                throw new UnsupportedOperationException();
            }

            @Override
            public void drain(int fd) throws IOException {
                throw new UnsupportedOperationException();
            }

            @Override
            public void close(int fd) {
                throw new UnsupportedOperationException();
            }
        });
    }

}