Class EventingFunctionBucketBinding
java.lang.Object
com.couchbase.client.java.manager.eventing.EventingFunctionBucketBinding
Represents a bucket binding of an eventing function.
-
Method Summary
Modifier and TypeMethodDescriptionaccess()
Returns the bucket access policy for the bucket binding.alias()
Returns the alias for the bucket binding.createReadOnly
(String alias, EventingFunctionKeyspace keyspace) Creates a read-only bucket binding.createReadWrite
(String alias, EventingFunctionKeyspace keyspace) Creates a read-write bucket binding.keyspace()
Returns the keyspace triple this bucket is accessing.toString()
-
Method Details
-
createReadOnly
public static EventingFunctionBucketBinding createReadOnly(String alias, EventingFunctionKeyspace keyspace) Creates a read-only bucket binding.- Parameters:
alias
- the alias for the bucket binding.keyspace
- the keyspace to which the binding points to.- Returns:
- a created
EventingFunctionBucketBinding
.
-
createReadWrite
public static EventingFunctionBucketBinding createReadWrite(String alias, EventingFunctionKeyspace keyspace) Creates a read-write bucket binding.- Parameters:
alias
- the alias for the bucket binding.keyspace
- the keyspace to which the binding points to.- Returns:
- a created
EventingFunctionBucketBinding
.
-
alias
Returns the alias for the bucket binding. -
keyspace
Returns the keyspace triple this bucket is accessing. -
access
Returns the bucket access policy for the bucket binding. -
toString
-