public enum CursorType extends Enum<CursorType>
| Enum Constant and Description | 
|---|
| NonTailableA non-tailable cursor. | 
| TailableTailable means the cursor is not closed when the last data is retrieved. | 
| TailableAwaitA tailable cursor with a built-in server sleep before returning an empty batch. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract boolean | isTailable()True if the cursor type is tailable. | 
| static CursorType | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static CursorType[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final CursorType NonTailable
public static final CursorType Tailable
public static final CursorType TailableAwait
public static CursorType[] values()
for (CursorType c : CursorType.values()) System.out.println(c);
public static CursorType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract boolean isTailable()