Class CollectionsManifest
java.lang.Object
com.couchbase.client.dcp.highlevel.internal.CollectionsManifest
A collections manifest optimized for lookups by collection ID,
and for evolution via DCP system events.
Immutable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CollectionsManifestA manifest with just the default scope and default collection. -
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionsManifestfromJson(byte[] jsonBytes) getCollection(long id) getCollection(String name) longgetId()toString()withCollection(long newManifestId, long scopeId, long collectionId, String collectionName, Long maxTtl) withManifestId(long newManifestId) withoutCollection(long newManifestId, long id) withoutScope(long newManifestId, long doomedScopeId)
-
Field Details
-
DEFAULT
A manifest with just the default scope and default collection.
-
-
Method Details
-
withManifestId
-
withScope
-
withoutScope
-
withCollection
public CollectionsManifest withCollection(long newManifestId, long scopeId, long collectionId, String collectionName, Long maxTtl) -
withoutCollection
-
getCollection
-
getCollection
- Parameters:
name- A fully-qualified collection name like "myScope.myCollection"
-
getScope
-
getId
public long getId() -
toString
-
fromJson
- Throws:
IOException
-