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.
DEFAULT_PARTITION
Constructor and Description |
---|
GetBucketConfigRequest(String bucket,
NetworkAddress hostname)
Creates a new
GetBucketConfigRequest . |
Modifier and Type | Method and Description |
---|---|
NetworkAddress |
hostname()
Returns the hostname of the node from where the config should be loaded.
|
short |
partition()
The partition (vbucket) to use for this request.
|
key, keyBytes, opaque, partition
bucket, complete, creationTime, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, succeed, toString, username
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bucket, complete, dispatchHostname, dispatchHostname, emit, fail, incrementRetryCount, isActive, maxRetryDuration, maxRetryDuration, observable, password, retryAfter, retryAfter, retryCount, retryDelay, retryDelay, subscriber, succeed, username
creationTime
public GetBucketConfigRequest(String bucket, NetworkAddress hostname)
Creates a new GetBucketConfigRequest
.
bucket
- the name of the bucket.hostname
- the hostname of the node.public NetworkAddress hostname()
Returns the hostname of the node from where the config should be loaded.
public short partition()
BinaryRequest
The partition (vbucket) to use for this request.
partition
in interface BinaryRequest
partition
in class AbstractKeyValueRequest
Copyright © 2018 Couchbase, Inc.. All rights reserved.