Class DcpChannel
java.lang.Object
com.couchbase.client.dcp.core.state.AbstractStateMachine<LifecycleState>
com.couchbase.client.dcp.conductor.DcpChannel
- All Implemented Interfaces:
Stateful<LifecycleState>
Logical representation of a DCP cluster connection.
The equals and hashcode are based on the InetAddress.
-
Constructor Summary
ConstructorsConstructorDescriptionDcpChannel(com.couchbase.client.core.util.HostAndPort address, Client.Environment env, Conductor conductor, DcpClientMetrics clientMetrics) -
Method Summary
Modifier and TypeMethodDescriptioncom.couchbase.client.core.util.HostAndPortaddress()reactor.core.publisher.Mono<Void>closeStream(int vbid) reactor.core.publisher.Mono<Void>connect()reactor.core.publisher.Mono<Void>booleanreactor.core.publisher.Mono<Optional<CollectionsManifest>>Returns empty optional if collections are not enabled for this channel, otherwise the current collections manifest.reactor.core.publisher.Mono<com.couchbase.client.core.deps.io.netty.buffer.ByteBuf>getFailoverLog(int vbid) static com.couchbase.client.core.util.HostAndPortgetHostAndPort(com.couchbase.client.core.deps.io.netty.channel.Channel channel) reactor.core.publisher.Mono<List<PartitionAndSeqno>>Returns all seqnos for all vbuckets on that channel.inthashCode()booleanreactor.core.publisher.Mono<Void>openStream(int vbid, StreamOffset startOffset, long endSeqno, CollectionsManifest manifest, Set<StreamFlag> flags) com.couchbase.client.core.deps.io.netty.util.concurrent.Future<DcpResponse>sendRequest(com.couchbase.client.core.deps.io.netty.buffer.ByteBuf message) booleanstreamIsOpen(int vbid) toString()Methods inherited from class com.couchbase.client.dcp.core.state.AbstractStateMachine
isState, state, transitionState
-
Constructor Details
-
DcpChannel
public DcpChannel(com.couchbase.client.core.util.HostAndPort address, Client.Environment env, Conductor conductor, DcpClientMetrics clientMetrics)
-
-
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
-
isShutdown
public boolean isShutdown() -
disconnect
-
address
public com.couchbase.client.core.util.HostAndPort address() -
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
-
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
-
hashCode
public int hashCode() -
toString
-