⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eventhandler.java

📁 java1.6众多例子参考
💻 JAVA
字号:
/* * @(#)EventHandler.java	1.5 05/11/17 *  * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.pept.transport;import java.nio.channels.SelectableChannel;import java.nio.channels.SelectionKey;import com.sun.corba.se.spi.orbutil.threadpool.Work;/** * @author Harold Carr * * This should only be registered with ONE selector. */public interface EventHandler {    public void setUseSelectThreadToWait(boolean x);    public boolean shouldUseSelectThreadToWait();    public SelectableChannel getChannel();    public int getInterestOps();    public void setSelectionKey(SelectionKey selectionKey);    public SelectionKey getSelectionKey();    public void handleEvent();    // NOTE: if there is more than one interest op this does not    // allow discrimination between different ops and how threading    // is handled.    public void setUseWorkerThreadForEvent(boolean x);    public boolean shouldUseWorkerThreadForEvent();    public void setWork(Work work);    public Work getWork();    // REVISIT: need base class with two derived.    public Acceptor getAcceptor();    public Connection getConnection();}// End of file.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -