Package com.github.ambry.network
Interface NetworkRequest
-
- All Known Implementing Classes:
EmptyRequest
public interface NetworkRequest
Simple request
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
The request as an input stream is returned to the callerlong
getStartTimeInMs()
Gets the start time in ms when this request starteddefault boolean
release()
Release any resource this request is holding.
-
-
-
Method Detail
-
getInputStream
java.io.InputStream getInputStream()
The request as an input stream is returned to the caller- Returns:
- The inputstream that represents the request
-
getStartTimeInMs
long getStartTimeInMs()
Gets the start time in ms when this request started- Returns:
- The start time in ms when the request started
-
release
default boolean release()
Release any resource this request is holding. By default it returns false so this method can be compatible withReferenceCounted.release()
- Returns:
true
if and only if the reference count became0
and this object has been deallocated
-
-