Class ReadResult
- java.lang.Object
-
- com.amazonaws.kinesisvideo.internal.producer.ReadResult
-
public class ReadResult extends Object
Class to hold the read results from the native code call. The class has a setter method that will be called from the native method to avoid object creation.
-
-
Field Summary
Fields Modifier and Type Field Description static longINVALID_UPLOAD_HANDLE_VALUEInvalid upload handle value which is specified in the native codebase.static longZERO_FRAGMENT_TIMECODE
-
Constructor Summary
Constructors Constructor Description ReadResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetReadBytes()booleanisEndOfStream()voidsetReadResult(int readBytes, boolean isEndOfStream)Setter method which is called from the native codebase.
-
-
-
Field Detail
-
INVALID_UPLOAD_HANDLE_VALUE
public static final long INVALID_UPLOAD_HANDLE_VALUE
Invalid upload handle value which is specified in the native codebase.- See Also:
- Constant Field Values
-
ZERO_FRAGMENT_TIMECODE
public static final long ZERO_FRAGMENT_TIMECODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setReadResult
@CalledByNativeCode public void setReadResult(int readBytes, boolean isEndOfStream)
Setter method which is called from the native codebase.- Parameters:
readBytes- Read bytesisEndOfStream- Whether its the end of stream
-
getReadBytes
public int getReadBytes()
-
isEndOfStream
public boolean isEndOfStream()
-
-