Package com.github.ambry.server
Class EmptyRequest
- java.lang.Object
-
- com.github.ambry.server.EmptyRequest
-
- All Implemented Interfaces:
NetworkRequest
public class EmptyRequest extends java.lang.Object implements NetworkRequest
The request class used to identify the end of the network communication
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getInputStream()
The request as an input stream is returned to the callerstatic EmptyRequest
getInstance()
long
getStartTimeInMs()
Gets the start time in ms when this request started-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.ambry.network.NetworkRequest
release
-
-
-
-
Method Detail
-
getInstance
public static EmptyRequest getInstance()
-
getInputStream
public java.io.InputStream getInputStream()
Description copied from interface:NetworkRequest
The request as an input stream is returned to the caller- Specified by:
getInputStream
in interfaceNetworkRequest
- Returns:
- The inputstream that represents the request
-
getStartTimeInMs
public long getStartTimeInMs()
Description copied from interface:NetworkRequest
Gets the start time in ms when this request started- Specified by:
getStartTimeInMs
in interfaceNetworkRequest
- Returns:
- The start time in ms when the request started
-
-