Class GetBucketConfigRequest
- java.lang.Object
-
- com.couchbase.client.core.message.AbstractCouchbaseRequest
-
- com.couchbase.client.core.message.kv.AbstractKeyValueRequest
-
- com.couchbase.client.core.message.kv.GetBucketConfigRequest
-
- All Implemented Interfaces:
BootstrapMessage
,CouchbaseMessage
,CouchbaseRequest
,BinaryRequest
public class GetBucketConfigRequest extends AbstractKeyValueRequest implements BootstrapMessage
Request which fetches a bucket configuration through carrier publication. Note that it is not advisable to send such a request from outside of the core. It is used by the configuration handling mechanism to regularly and on bootstrap load new configurations.- Since:
- 1.0
- Author:
- Michael Nitschinger
-
-
Field Summary
-
Fields inherited from class com.couchbase.client.core.message.kv.AbstractKeyValueRequest
DEFAULT_PARTITION
-
-
Constructor Summary
Constructors Constructor Description GetBucketConfigRequest(String bucket, String hostname)
Creates a newGetBucketConfigRequest
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
hostname()
Returns the hostname of the node from where the config should be loaded.short
partition()
The partition (vbucket) to use for this request.-
Methods inherited from class com.couchbase.client.core.message.kv.AbstractKeyValueRequest
afterSpanSet, key, keyBytes, opaque, operationId, partition
-
Methods inherited from class com.couchbase.client.core.message.AbstractCouchbaseRequest
bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, toString, username
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.couchbase.client.core.message.CouchbaseMessage
creationTime
-
Methods inherited from interface com.couchbase.client.core.message.CouchbaseRequest
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, lastLocalId, lastLocalId, lastLocalSocket, lastLocalSocket, lastRemoteSocket, lastRemoteSocket, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, span, span, subscriber, succeed, username
-
-
-
-
Constructor Detail
-
GetBucketConfigRequest
public GetBucketConfigRequest(String bucket, String hostname)
Creates a newGetBucketConfigRequest
.- Parameters:
bucket
- the name of the bucket.hostname
- the hostname of the node.
-
-
Method Detail
-
hostname
public String hostname()
Returns the hostname of the node from where the config should be loaded.- Returns:
- the hostname.
-
partition
public short partition()
Description copied from interface:BinaryRequest
The partition (vbucket) to use for this request.- Specified by:
partition
in interfaceBinaryRequest
- Overrides:
partition
in classAbstractKeyValueRequest
- Returns:
- the partition to use.
-
-