Package org.neo4j.cdc.client.selector
Class EntitySelector.Builder<T extends EntitySelector.Builder<?,?>,S extends EntitySelector>
- java.lang.Object
-
- org.neo4j.cdc.client.selector.EntitySelector.Builder<T,S>
-
- Direct Known Subclasses:
NodeSelector.NodeSelectorBuilder,RelationshipSelector.RelationshipSelectorBuilder
- Enclosing class:
- EntitySelector
public static class EntitySelector.Builder<T extends EntitySelector.Builder<?,?>,S extends EntitySelector> extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected StringauthenticatedUserprotected Set<String>changesToprotected Set<String>excludePropertiesprotected StringexecutingUserprotected Set<String>includePropertiesprotected EntityOperationoperationprotected Map<String,Object>txMetadata
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sbuild()Build the desired selector.TexcludingProperties(Set<String> excludeProperties)Set which properties to exclude from the returned change events.TincludingProperties(Set<String> includeProperties)Set which properties to include in the returned change events.TwithAuthenticatedUser(String authenticatedUser)Set a filter of authenticated user on the selector to be built.TwithChangesTo(Set<String> changesTo)Set a filter of added/updated or removed properties on the selector to be built.TwithExecutingUser(String executingUser)Set a filter of executing user on the selector to be built.TwithOperation(EntityOperation operation)Set an operation type filter on the selector to be built.TwithTxMetadata(Map<String,Object> txMetadata)Set a filter of transaction metadata on the selector to be built.
-
-
-
Field Detail
-
operation
protected EntityOperation operation
-
executingUser
protected String executingUser
-
authenticatedUser
protected String authenticatedUser
-
-
Method Detail
-
withOperation
public T withOperation(EntityOperation operation)
Set an operation type filter on the selector to be built.- Parameters:
operation- operation type- Returns:
- builder
-
withChangesTo
public T withChangesTo(Set<String> changesTo)
Set a filter of added/updated or removed properties on the selector to be built.- Parameters:
changesTo- set of property names- Returns:
- builder
-
withExecutingUser
public T withExecutingUser(String executingUser)
Set a filter of executing user on the selector to be built.- Parameters:
executingUser- executing user- Returns:
- builder
-
withAuthenticatedUser
public T withAuthenticatedUser(String authenticatedUser)
Set a filter of authenticated user on the selector to be built.- Parameters:
authenticatedUser- authenticated user- Returns:
- builder
-
withTxMetadata
public T withTxMetadata(Map<String,Object> txMetadata)
Set a filter of transaction metadata on the selector to be built.- Parameters:
txMetadata- transaction metadata- Returns:
- builder
-
includingProperties
public T includingProperties(Set<String> includeProperties)
Set which properties to include in the returned change events.- Parameters:
includeProperties- set of property names- Returns:
- builder
-
excludingProperties
public T excludingProperties(Set<String> excludeProperties)
Set which properties to exclude from the returned change events.- Parameters:
excludeProperties- set of property names- Returns:
- builder
-
build
public S build()
Build the desired selector.- Returns:
- selector
-
-