Package com.amazonaws
Class RequestClientOptions
- java.lang.Object
-
- com.amazonaws.RequestClientOptions
-
public final class RequestClientOptions extends Object
Client request options such as client markers for individualAmazonWebServiceRequests.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRequestClientOptions.Marker
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_STREAM_BUFFER_SIZEUsed to enable mark-and-reset for non-mark-and-resettable non-file input stream for up to 128K memory buffering by default.
-
Constructor Summary
Constructors Constructor Description RequestClientOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendUserAgent(String userAgent)Appends a user agent to the USER_AGENT client marker.StringgetClientMarker(RequestClientOptions.Marker marker)Returns the value of the specified marker; or null if there is no such value.intgetReadLimit()Returns the mark-and-reset read limit; defaults to 131073.voidputClientMarker(RequestClientOptions.Marker marker, String value)Associates the given value with the given marker.voidsetReadLimit(int readLimit)Sets the optional mark-and-reset read limit used for signing and retry purposes.
-
-
-
Field Detail
-
DEFAULT_STREAM_BUFFER_SIZE
public static final int DEFAULT_STREAM_BUFFER_SIZE
Used to enable mark-and-reset for non-mark-and-resettable non-file input stream for up to 128K memory buffering by default. Add 1 to get around an implementation quirk of BufferedInputStream. Retries after readingDEFAULT_STREAM_BUFFER_SIZEbytes would fail to reset the underlying input stream as the mark position would have been invalidated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getClientMarker
public String getClientMarker(RequestClientOptions.Marker marker)
Returns the value of the specified marker; or null if there is no such value.
-
putClientMarker
public void putClientMarker(RequestClientOptions.Marker marker, String value)
Associates the given value with the given marker. Note theRequestClientOptions.Marker.USER_AGENTis only intended for internal use by the AWS SDK.
-
appendUserAgent
public void appendUserAgent(String userAgent)
Appends a user agent to the USER_AGENT client marker. This method is intended only for internal use by the AWS SDK.
-
getReadLimit
public final int getReadLimit()
Returns the mark-and-reset read limit; defaults to 131073.- See Also:
InputStream.mark(int)
-
setReadLimit
public final void setReadLimit(int readLimit)
Sets the optional mark-and-reset read limit used for signing and retry purposes.- See Also:
InputStream.mark(int)
-
-