Package de.bwaldvogel.mongo.wire
Enum QueryFlag
- java.lang.Object
-
- java.lang.Enum<QueryFlag>
-
- de.bwaldvogel.mongo.wire.QueryFlag
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AWAIT_DATAEXHAUSTNO_CURSOR_TIMEOUTOPLOG_REPLAYPARTIALSLAVE_OKTAILABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisSet(int flags)intremoveFrom(int flags)static QueryFlagvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static QueryFlag[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TAILABLE
public static final QueryFlag TAILABLE
-
SLAVE_OK
public static final QueryFlag SLAVE_OK
-
OPLOG_REPLAY
public static final QueryFlag OPLOG_REPLAY
-
NO_CURSOR_TIMEOUT
public static final QueryFlag NO_CURSOR_TIMEOUT
-
AWAIT_DATA
public static final QueryFlag AWAIT_DATA
-
EXHAUST
public static final QueryFlag EXHAUST
-
PARTIAL
public static final QueryFlag PARTIAL
-
-
Method Detail
-
values
public static QueryFlag[] 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 (QueryFlag c : QueryFlag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryFlag valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isSet
public boolean isSet(int flags)
-
removeFrom
public int removeFrom(int flags)
-
-