Class Bucket


  • public class Bucket
    extends Object
    Provides access to a Couchbase bucket in a blocking fashion.
    • Method Detail

      • name

        public String name()
        Returns the name of the Bucket.
      • core

        @Volatile
        public Core core()
        Provides access to the underlying Core.

        This is advanced API, use with care!

      • scope

        @Volatile
        public Scope scope​(String name)
        Opens the Scope with the given name.
        Parameters:
        name - the name of the scope.
        Returns:
        the Scope once opened.
      • defaultCollection

        public Collection defaultCollection()
        Opens the default collection for this Bucket.
        Returns:
        the Collection once opened.
      • ping

        @Volatile
        public PingResult ping​(PingOptions options)
        Performs a diagnostic active "ping" call with custom options, on all services. Note that since each service has different timeouts, you need to provide a timeout that suits your needs (how long each individual service ping should take max before it times out).
        Parameters:
        options - options controlling the final ping result
        Returns:
        a ping report once created.
      • ping

        @Volatile
        public PingResult ping()
        Performs a diagnostic active "ping" call on all services. Note that since each service has different timeouts, you need to provide a timeout that suits your needs (how long each individual service ping should take max before it times out).
        Returns:
        a ping report once created.