@Internal public enum DataInputStatus extends Enum<DataInputStatus>
InputStatus
that provides
additional non public statuses.
An InputStatus
indicates the availability of data from an asynchronous input. When
asking an asynchronous input to produce data, it returns this status to indicate how to proceed.
枚举常量和说明 |
---|
END_OF_DATA
Indicator that the input has reached the end of data.
|
END_OF_INPUT
Indicator that the input has reached the end of data and control events.
|
END_OF_RECOVERY
Indicator that all persisted data of the data exchange has been successfully restored.
|
MORE_AVAILABLE
Indicator that more data is available and the input can be called immediately again to
produce more data.
|
NOTHING_AVAILABLE
Indicator that no data is currently available, but more data will be available in the future
again.
|
public static final DataInputStatus MORE_AVAILABLE
public static final DataInputStatus NOTHING_AVAILABLE
public static final DataInputStatus END_OF_RECOVERY
public static final DataInputStatus END_OF_DATA
public static final DataInputStatus END_OF_INPUT
public static DataInputStatus[] values()
for (DataInputStatus c : DataInputStatus.values()) System.out.println(c);
public static DataInputStatus valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.