Class DcpChannel

All Implemented Interfaces:
Stateful<LifecycleState>

public class DcpChannel extends AbstractStateMachine<LifecycleState>
Logical representation of a DCP cluster connection.

The equals and hashcode are based on the InetAddress.

  • Constructor Details

  • Method Details

    • getHostAndPort

      public static com.couchbase.client.core.util.HostAndPort getHostAndPort(com.couchbase.client.core.deps.io.netty.channel.Channel channel)
    • sendRequest

      public com.couchbase.client.core.deps.io.netty.util.concurrent.Future<DcpResponse> sendRequest(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf message)
      See Also:
    • connect

      public reactor.core.publisher.Mono<Void> connect()
    • isShutdown

      public boolean isShutdown()
    • disconnect

      public reactor.core.publisher.Mono<Void> disconnect()
    • address

      public com.couchbase.client.core.util.HostAndPort address()
    • getCollectionsManifest

      public reactor.core.publisher.Mono<Optional<CollectionsManifest>> getCollectionsManifest()
      Returns empty optional if collections are not enabled for this channel, otherwise the current collections manifest.
    • openStream

      public reactor.core.publisher.Mono<Void> openStream(int vbid, StreamOffset startOffset, long endSeqno, CollectionsManifest manifest, Set<StreamFlag> flags)
    • closeStream

      public reactor.core.publisher.Mono<Void> closeStream(int vbid)
    • getSeqnos

      public reactor.core.publisher.Mono<List<PartitionAndSeqno>> getSeqnos()
      Returns all seqnos for all vbuckets on that channel.
    • getFailoverLog

      public reactor.core.publisher.Mono<com.couchbase.client.core.deps.io.netty.buffer.ByteBuf> getFailoverLog(int vbid)
    • streamIsOpen

      public boolean streamIsOpen(int vbid)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object