public interface CouchbaseRequest extends CouchbaseMessage
High-Level marker interface for all CouchbaseRequest
s.
Modifier and Type | Method and Description |
---|---|
String |
bucket()
The associated bucket name for this request.
|
String |
dispatchHostname() |
void |
dispatchHostname(String hostname) |
int |
incrementRetryCount()
Returns the old retry count and increments it by one.
|
boolean |
isActive()
Checks if the request is unsubscribed on a timeout
|
long |
maxRetryDuration()
Returns the maximum retry duration for the request.
|
void |
maxRetryDuration(long duration)
Sets the maximum retry duration for the request.
|
rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> |
observable()
Get the underlying
Observable . |
String |
password()
The password associated with the bucket/ user
|
long |
retryAfter()
Gets the initial retry after time for the request.
|
void |
retryAfter(long after)
Sets the initial retry after time for the request.
|
int |
retryCount()
Returns the current retry count.
|
Delay |
retryDelay()
Returns the retry delay config
|
void |
retryDelay(Delay delay)
Sets the retry delay config
|
void |
subscriber(rx.Subscriber subscriber)
Optionally add subscriber to check for the timeouts
|
String |
username()
User authorized for bucket access
|
creationTime
rx.subjects.Subject<CouchbaseResponse,CouchbaseResponse> observable()
Get the underlying Observable
.
String bucket()
The associated bucket name for this request.
String username()
User authorized for bucket access
String password()
The password associated with the bucket/ user
int incrementRetryCount()
Returns the old retry count and increments it by one.
int retryCount()
Returns the current retry count.
void retryAfter(long after)
Sets the initial retry after time for the request.
after
- long retryAfter()
Gets the initial retry after time for the request.
void maxRetryDuration(long duration)
Sets the maximum retry duration for the request.
duration
- long maxRetryDuration()
Returns the maximum retry duration for the request.
void retryDelay(Delay delay)
Sets the retry delay config
delay
- Delay retryDelay()
Returns the retry delay config
@InterfaceAudience.Private @InterfaceStability.Uncommitted boolean isActive()
Checks if the request is unsubscribed on a timeout
@InterfaceAudience.Private @InterfaceStability.Uncommitted void subscriber(rx.Subscriber subscriber)
Optionally add subscriber to check for the timeouts
String dispatchHostname()
void dispatchHostname(String hostname)
Copyright © 2017 Couchbase, Inc.. All rights reserved.