Java Doc for SelectableChannel.java in  » Apache-Harmony-Java-SE » java-package » java » nio » channels » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Apache Harmony Java SE » java package » java.nio.channels 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.nio.channels.spi.AbstractInterruptibleChannel
      java.nio.channels.SelectableChannel

All known Subclasses:   java.nio.channels.spi.AbstractSelectableChannel,
SelectableChannel
abstract public class SelectableChannel extends AbstractInterruptibleChannel implements Channel(Code)
A channel that can be detected by a selector. The channel can be registered with some selectors, and when invoke select method of the selectors, the channel can be checked if it is readable, writable, connectable or acceptable according to its interesting operation.



Constructor Summary
protected  SelectableChannel()
     Default constructor, can be overridden.

Method Summary
abstract public  ObjectblockingLock()
     Gets the blocking lock which synchronizes the configureBlocking and register methods.
abstract public  SelectableChannelconfigureBlocking(boolean block)
     Sets blocking mode of the channel.
abstract public  booleanisBlocking()
     Returns if channel is in blocking mode.
abstract public  booleanisRegistered()
     Returns if channel is registered.
abstract public  SelectionKeykeyFor(Selector sel)
     Gets the selection key for the channel with the given selector.
abstract public  SelectorProviderprovider()
     Gets the provider of the channel.
final public  SelectionKeyregister(Selector selector, int operations)
     Registers with the given selector with a certain interesting operation.
abstract public  SelectionKeyregister(Selector sel, int ops, Object att)
     Registers with the given selector with a certain interesting operation and an attached object.
abstract public  intvalidOps()
     Gets the possible interesting operation of the channel.


Constructor Detail
SelectableChannel
protected SelectableChannel()(Code)
Default constructor, can be overridden.




Method Detail
blockingLock
abstract public Object blockingLock()(Code)
Gets the blocking lock which synchronizes the configureBlocking and register methods. the blocking object as lock



configureBlocking
abstract public SelectableChannel configureBlocking(boolean block) throws IOException(Code)
Sets blocking mode of the channel.
Parameters:
  block - true as blocking, false as non-blocking this channel
throws:
  ClosedChannelException - If this channel has been closed
throws:
  IllegalBlockingModeException - If the channel has been registered
throws:
  IOException - if I/O error occurs



isBlocking
abstract public boolean isBlocking()(Code)
Returns if channel is in blocking mode. true if channel is blocking



isRegistered
abstract public boolean isRegistered()(Code)
Returns if channel is registered. true if channel is registered



keyFor
abstract public SelectionKey keyFor(Selector sel)(Code)
Gets the selection key for the channel with the given selector.
Parameters:
  sel - the selector with which this channel may register the selection key for the channel according to the given selector



provider
abstract public SelectorProvider provider()(Code)
Gets the provider of the channel. the provider of the channel



register
final public SelectionKey register(Selector selector, int operations) throws ClosedChannelException(Code)
Registers with the given selector with a certain interesting operation.
Parameters:
  selector - the selector with which this channel shall be registered
Parameters:
  operations - the interesting operation the selection key indicates the channel
throws:
  ClosedChannelException - if the channel is closed
throws:
  IllegalBlockingModeException - If the channel is in blocking mode
throws:
  IllegalSelectorException - If this channel does not have the same provider as the givenselector
throws:
  CancelledKeyException - If this channel is registered but its key has been cancelled
throws:
  IllegalArgumentException - If the operation given is unsupported by this channel



register
abstract public SelectionKey register(Selector sel, int ops, Object att) throws ClosedChannelException(Code)
Registers with the given selector with a certain interesting operation and an attached object.
Parameters:
  sel - the selector with which this channel shall be registered
Parameters:
  ops - the interesting operation
Parameters:
  att - The attached object, which can be null the selection key indicates the channel
throws:
  ClosedChannelException - if the channel is closed
throws:
  IllegalBlockingModeException - If the channel is in blocking mode
throws:
  IllegalSelectorException - If this channel does not have the same provider with thegiven selector
throws:
  CancelledKeyException - If this channel is registered but its key has been cancelled
throws:
  IllegalArgumentException - If the operation given is unsupported by this channel



validOps
abstract public int validOps()(Code)
Gets the possible interesting operation of the channel. the possible interesting operation of the channel



Methods inherited from java.nio.channels.spi.AbstractInterruptibleChannel
final protected void begin()(Code)(Java Doc)
final public void close() throws IOException(Code)(Java Doc)
final protected void end(boolean success) throws AsynchronousCloseException(Code)(Java Doc)
abstract protected void implCloseChannel() throws IOException(Code)(Java Doc)
final public synchronized boolean isOpen()(Code)(Java Doc)

Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.