Package com.yahoo.documentapi
Class DocumentOperationParameters
- java.lang.Object
-
- com.yahoo.documentapi.DocumentOperationParameters
-
public class DocumentOperationParameters extends java.lang.Object
Optional parameters for a document operation. Immutable class.- Author:
- jonmv
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Optional<java.lang.String>
fieldSet()
int
hashCode()
static DocumentOperationParameters
parameters()
java.util.Optional<DocumentProtocol.Priority>
priority()
java.util.Optional<ResponseHandler>
responseHandler()
java.util.Optional<java.lang.String>
route()
java.lang.String
toString()
java.util.OptionalInt
traceLevel()
DocumentOperationParameters
withFieldSet(com.yahoo.document.fieldset.FieldSet fieldSet)
Sets the field set used for retrieval.DocumentOperationParameters
withFieldSet(java.lang.String fieldSet)
Sets the field set used for retrieval.DocumentOperationParameters
withPriority(DocumentProtocol.Priority priority)
Sets the priority with which to perform an operation.DocumentOperationParameters
withResponseHandler(ResponseHandler responseHandler)
Sets theResponseHandler
to handle theResponse
of an async operation, instead of the session default.DocumentOperationParameters
withRoute(java.lang.String route)
Sets the route along which to send the operation.DocumentOperationParameters
withTraceLevel(int traceLevel)
Sets the trace level for an operation.
-
-
-
Method Detail
-
parameters
public static DocumentOperationParameters parameters()
-
withPriority
public DocumentOperationParameters withPriority(DocumentProtocol.Priority priority)
Sets the priority with which to perform an operation.
-
withFieldSet
public DocumentOperationParameters withFieldSet(com.yahoo.document.fieldset.FieldSet fieldSet)
Sets the field set used for retrieval.
-
withFieldSet
public DocumentOperationParameters withFieldSet(java.lang.String fieldSet)
Sets the field set used for retrieval.
-
withRoute
public DocumentOperationParameters withRoute(java.lang.String route)
Sets the route along which to send the operation.
-
withTraceLevel
public DocumentOperationParameters withTraceLevel(int traceLevel)
Sets the trace level for an operation.
-
withResponseHandler
public DocumentOperationParameters withResponseHandler(ResponseHandler responseHandler)
Sets theResponseHandler
to handle theResponse
of an async operation, instead of the session default.
-
priority
public java.util.Optional<DocumentProtocol.Priority> priority()
-
fieldSet
public java.util.Optional<java.lang.String> fieldSet()
-
route
public java.util.Optional<java.lang.String> route()
-
traceLevel
public java.util.OptionalInt traceLevel()
-
responseHandler
public java.util.Optional<ResponseHandler> responseHandler()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-