All Classes and Interfaces
Class
Description
Abstract
Stateful
implementation which acts like a simple state machine.Tracks the results of an action that can succeed or fail.
Tracks the results and of an action that can succeed or fail, along with elapsed time.
A stateful wrapper around a
Delay
.Dispatches events in a separate dedicated thread.
A
boolean
array in which elements may be updated atomically.Performs SASL authentication against the socket and once complete removes itself.
Subset of the BlockingQueue interface that should be exposed to consumers.
This exception indicates an error during bootstrap.
Manages the bucket config stream.
Performs authentication through a client certificate instead of supplying username and password.
Various netty channel related utility methods.
This
Client
provides the main API to configure and use the DCP client.Builder object to customize the
Client
creation.The
Client.Environment
is responsible to carry various configuration and
state information throughout the lifecycle.Issues ordinary NOOP requests to the server when the DCP channel is idle.
A collections manifest optimized for lookups by collection ID,
and for evolution via DCP system events.
A generic interface which determines the name for a DCP connection.
This interface acts as a callback on the
Client.controlEventHandler(ControlEventHandler)
API
that allows one to react to control events.Defines the generic couchbase event pushed through the event bus.
Common parent exception to build a proper exception hierarchy inside the driver.
Optionally auto-acknowledges events as they are consumed.
This interface acts as a callback on the
Client.dataEventHandler(DataEventHandler)
API
that allows one to react to data events.https://github.com/couchbase/kv_engine/blob/master/docs/BinaryProtocol.md#data-types
Sent to the consumer to tell the consumer to initiate a stream request with the producer
A wrapper around a
ClusterTopologyWithBucket
that exposes just the bits the DCP client cares about.Logical representation of a DCP cluster connection.
Opens the DCP connection on the channel and once established removes itself.
This class is used during bootstrap to configure all the possible DCP negotiation parameters.
All the possible control options available.
Negotiates DCP controls once connected and removes itself afterwards.
A
ChannelHandler
that logs all events using a logging framework.Handles the "business logic" of incoming DCP mutation and control messages.
Thrown when response status field is non-zero.
Sets up the pipeline for the actual DCP communication channels.
Sends DCP requests to the server.
Type alias.
This message is used during the VBucket takeover process to hand off ownership of a VBucket between two nodes.
The default implementation for the
ConnectionNameGenerator
.Provides global access to the services of a Jackson
ObjectMapper
with default configuration.Parent class of
Delay
s and provides factory methods to create them.Tracks occurrences of an event.
Bridges the gap between the various low-level callback handlers and the
high-level
DatabaseChangeListener
.Utility methods for event handling.
Delay which increases exponentially on every attempt.
Event published when the connector has failed to add new node during failover/rebalance.
Event published when the connector has failed to move partition to new node during failover/rebalance.
Event published when the connector has failed to remove node during failover/rebalance.
Represents a single entry in a failover log per partition state.
Delay which is fixed for every attempt.
A user event indicating the connection should be failed
if the handshake is not yet complete.
Collaborates with
ConnectInterceptingHandler
to fail the connection
if the handshake takes too long.Dispatches events in the same thread that calls the dispatch method.
Knows how to parse the collection ID out of a message's key field.
**Represents common lifecycle states of components.**
Delay which increases linearly for every attempt.
Various math utility methods, also backports from later JDK versions.
Simple implementation that synchronously logs events.
ShutdownHook
hook that does nothing and returns true.Thrown if the stateful component is not connected.
Created by daschl on 01/09/16.
An immutable pair consisting of a partition and an associated sequence number.
A set of partition IDs, printable in a compact human-readable form suitable for logging.
Represents the individual current session state for a given partition.
For each partition, holds the persisted sequence number and vbucket UUID for the active and replicas.
Represents a logging argument which is subject to redaction.
The type of the redactable argument.
Allows to specify the level of log redaction.
Response status codes and messages, as defined in the
Response Status section of the Couchbase Binary Protocol specification.
Indicates a rollback happened, used as an internal messaging event.
TLS options.
This builder allows to customize the default security configuration.
Think of this as a document change event without a document.
Utils for handling server-initiated requests when DUPLEX mode is active
Holds the state information for the current session (all partitions involved).
Jackson JSON deserializer for
SessionState
and PartitionState
.Jackson JSON serializer for
SessionState
and PartitionState
.Interface to describe shutdown behavior for a resource that
can be asynchronously shut down.
Flags, used in snapshot messages.
This factory creates
SslHandler
based on a given configuration.Deprecated.
A stateful component that changes its state and notifies subscribed parties.
Event published when stream has stopped activity.
Code describing why producer decided to close the stream.
When rollback mitigation / persistence polling is enabled, the stream event buffer
intercepts stream events and stores them until being notified that persistence is observed.
Flags for "open stream" and "add stream" requests.
From which point in time to start the DCP stream.
Position in a DCP stream for a particular vbucket.
Up to which point the DCP stream should run.
This interface acts as a callback on the
Client.systemEventHandler(SystemEventHandler)
API
that allows one to react to system events.Callback handler for various events that might occur while the DCP client
is running.
Static factory class for various Tuples.
A container for two values.
Encodes and decodes the unsigned LEB128 (Little Endian Base 128) format.
Generates a User Agent string in accordance with https://tools.ietf.org/html/rfc7231#section-5.5.3
Representation of a software version, up to major.minor.patch granularity.
Client.recoverState(com.couchbase.client.dcp.state.StateFormat, byte[])
for details.