Java Doc for SelectSetDevPollImpl.java in  » Web-Server » Rimfaxe-Web-Server » seda » nbio » 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 » Web Server » Rimfaxe Web Server » seda.nbio 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   seda.nbio.SelectSetImpl
      seda.nbio.SelectSetDevPollImpl

SelectSetDevPollImpl
class SelectSetDevPollImpl extends SelectSetImpl (Code)
SelectSetDevPollImpl is an implementation of SelectSet which uses the UNIX /dev/poll mechanism.
See Also:   SelectSet



Constructor Summary
 SelectSetDevPollImpl()
     Create a SelectSetDevPollImpl with no SelectItems.

Method Summary
synchronized  voidadd(SelectItem sel)
     Add a SelectItem to this SelectSetDevPollImpl.
synchronized  voidadd(SelectItem selarr)
     Add all of the SelectItems in the given array to the SelectSetDevPollImpl.
synchronized  SelectItemelementAt(int index)
     Return the SelectItem at the given index.
synchronized  SelectItem[]getEvents(short mask)
     Returns an array of SelectItems for which events matching the given event mask have occurred (that is, that the revents field matches the given mask).
synchronized  SelectItem[]getEvents()
     Returns an array of SelectItems for which some events have occurred (that is, that the revents field is nonzero).
static  booleanisSupported()
     Returns true if /dev/poll is supported on this platform.
synchronized  intnumActive()
     Return the number of active SelectItems in this SelectSetDevPollImpl.
synchronized  voidremove(SelectItem sel)
     Remove a SelectItem from the SelectSetDevPollImpl.
synchronized  voidremove(SelectItem selarr)
     Remove all of the SelectItems in the given array from the SelectSetDevPollImpl.
synchronized  voidremove(int index)
     Remove the SelectItem at the given index from the SelectSetDevPollImpl.
 intselect(int timeout)
     Wait for events to occur on the SelectItems in this SelectSetDevPollImpl. Upon return, the 'revents' field of each SelectItem will be set to the mask of events that occurred.
synchronized  intsize()
     Return the number of SelectItems in this SelectSetDevPollImpl.
public  StringtoString()
    
synchronized  voidupdate()
     Push updated event masks for all SelectItems in this SelectSet to the /dev/poll device.
synchronized  voidupdate(SelectItem sel)
     Push updated event masks for all SelectItems in this SelectSet to native code.


Constructor Detail
SelectSetDevPollImpl
SelectSetDevPollImpl()(Code)
Create a SelectSetDevPollImpl with no SelectItems.




Method Detail
add
synchronized void add(SelectItem sel)(Code)
Add a SelectItem to this SelectSetDevPollImpl.



add
synchronized void add(SelectItem selarr)(Code)
Add all of the SelectItems in the given array to the SelectSetDevPollImpl.



elementAt
synchronized SelectItem elementAt(int index)(Code)
Return the SelectItem at the given index.



getEvents
synchronized SelectItem[] getEvents(short mask)(Code)
Returns an array of SelectItems for which events matching the given event mask have occurred (that is, that the revents field matches the given mask). This is a convenience method and is not meant to be optimized; since it scans the SelectItem array and creates a new reference array, it imposes higher overhead than the application scanning the SelectItem array directly, using the size() and elementAt() methods.



getEvents
synchronized SelectItem[] getEvents()(Code)
Returns an array of SelectItems for which some events have occurred (that is, that the revents field is nonzero). This is a convenience method and is not meant to be optimized; since it scans the SelectItem array and creates a new reference array, it imposes higher overhead than the application scanning the SelectItem array directly, using the size() and elementAt() methods.



isSupported
static boolean isSupported()(Code)
Returns true if /dev/poll is supported on this platform.



numActive
synchronized int numActive()(Code)
Return the number of active SelectItems in this SelectSetDevPollImpl.



remove
synchronized void remove(SelectItem sel)(Code)
Remove a SelectItem from the SelectSetDevPollImpl.



remove
synchronized void remove(SelectItem selarr)(Code)
Remove all of the SelectItems in the given array from the SelectSetDevPollImpl.



remove
synchronized void remove(int index)(Code)
Remove the SelectItem at the given index from the SelectSetDevPollImpl.



select
int select(int timeout)(Code)
Wait for events to occur on the SelectItems in this SelectSetDevPollImpl. Upon return, the 'revents' field of each SelectItem will be set to the mask of events that occurred. Note that this method does not set revents to 0 when called; after processing an event, it is the application's responsibility to clear the revents field. This is intentional: if the application wishes to delay the processing of an event, it can leave the revents field as-is so that subsequent calls to select will continue to indicate that the event is pending.

IMPORTANT NOTE: If timeout is non-zero, this call will block the thread which invokes it. If you are using Green Threads, this will block the entire JVM. Unless you have a single-threaded application, you should only use SelectSet.select() with native threads.
Parameters:
  timeout - The maximum number of milliseconds to block waitingfor an event to occur. A timeout of 0 means than select should not block;a timeout of -1 means that select should block indefinitely. The number of events received, or 0 if no events occurred.




size
synchronized int size()(Code)
Return the number of SelectItems in this SelectSetDevPollImpl.



toString
public String toString()(Code)



update
synchronized void update()(Code)
Push updated event masks for all SelectItems in this SelectSet to the /dev/poll device.



update
synchronized void update(SelectItem sel)(Code)
Push updated event masks for all SelectItems in this SelectSet to native code.



Methods inherited from seda.nbio.SelectSetImpl
abstract void add(SelectItem sel)(Code)(Java Doc)
abstract void add(SelectItem selarr)(Code)(Java Doc)
abstract SelectItem elementAt(int index)(Code)(Java Doc)
abstract SelectItem[] getEvents(short mask)(Code)(Java Doc)
abstract SelectItem[] getEvents()(Code)(Java Doc)
abstract int numActive()(Code)(Java Doc)
abstract void remove(SelectItem sel)(Code)(Java Doc)
abstract void remove(SelectItem selarr)(Code)(Java Doc)
abstract void remove(int index)(Code)(Java Doc)
abstract int select(int timeout)(Code)(Java Doc)
abstract int size()(Code)(Java Doc)
abstract void update()(Code)(Java Doc)
abstract void update(SelectItem sel)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) 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.