barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

com.barchart.udt
Enum EpollUDT.Opt

java.lang.Object
  extended by java.lang.Enum<EpollUDT.Opt>
      extended by com.barchart.udt.EpollUDT.Opt
All Implemented Interfaces:
Serializable, Comparable<EpollUDT.Opt>
Enclosing class:
EpollUDT

public static enum EpollUDT.Opt
extends Enum<EpollUDT.Opt>

poll interest option mask

see udt.h enum - EPOLLOpt

    UDT_EPOLL_IN = 0x1,
    UDT_EPOLL_OUT = 0x4,
    UDT_EPOLL_ERR = 0x8
 
this is subset adapted to jdk select pattern


Enum Constant Summary
ALL
           
BOTH
           
ERROR
          UDT_EPOLL_ERR: interested in exceptions
ERROR_READ
           
ERROR_WRITE
           
NONE
          not interested
READ
          UDT_EPOLL_IN : interested in read
UNKNOWN
           
WRITE
          UDT_EPOLL_OUT: interested in write
 
Field Summary
 int code
          poll event mask;
 
Method Summary
static EpollUDT.Opt from(int code)
           
 boolean hasError()
           
 boolean hasRead()
           
 boolean hasWrite()
           
 boolean isValidInterestRequest()
          Non-empty mask of 3 parts.
static EpollUDT.Opt valueOf(String name)
          Returns the enum constant of this type with the specified name.
static EpollUDT.Opt[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final EpollUDT.Opt NONE
not interested


READ

public static final EpollUDT.Opt READ
UDT_EPOLL_IN : interested in read


WRITE

public static final EpollUDT.Opt WRITE
UDT_EPOLL_OUT: interested in write


ERROR

public static final EpollUDT.Opt ERROR
UDT_EPOLL_ERR: interested in exceptions


BOTH

public static final EpollUDT.Opt BOTH

ERROR_READ

public static final EpollUDT.Opt ERROR_READ

ERROR_WRITE

public static final EpollUDT.Opt ERROR_WRITE

ALL

public static final EpollUDT.Opt ALL

UNKNOWN

public static final EpollUDT.Opt UNKNOWN
Field Detail

code

public final int code
poll event mask;

used for both requesting interest and reporting readiness

Method Detail

values

public static EpollUDT.Opt[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EpollUDT.Opt c : EpollUDT.Opt.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EpollUDT.Opt valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

from

public static EpollUDT.Opt from(int code)

hasError

public boolean hasError()

hasRead

public boolean hasRead()

hasWrite

public boolean hasWrite()

isValidInterestRequest

public boolean isValidInterestRequest()
Non-empty mask of 3 parts.


barchart-udt-core
2.3.0-SNAPSHOT / 2013-05-13T01:37:38.485-0500

Copyright © 2009-2013 Barchart, Inc.. All Rights Reserved.