Class/Object

io.buoyant.etcd

Key

Related Docs: object Key | package etcd

Permalink

class Key extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Key
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Key(key: Path, client: Service[Request, Response])

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def compareAndSwap(value: Buf, prevIndex: Option[Long] = None, prevValue: Option[Buf] = None, prevExist: Boolean = true): Future[NodeOp]

    Permalink

    Set the node's data if the provided preconditions apply to the existing state of the node.

    Set the node's data if the provided preconditions apply to the existing state of the node.

    If prevIndex is specified, the current node must have the provided index value.

    If prevValue is specified, the current node must have the provided value.

    If prevExist is false, the node is not required to exist.

  7. def create(value: Option[Buf], ttl: Option[Duration] = None): Future[NodeOp]

    Permalink

    Create a new key.

    Create a new key.

    If the key exists, an error is returned.

    If value is None, the key is treated as a directory. In order to create an empty data node, use Some(Buf.Empty).

    Optionally, a ttl may be specified to inform etcd to remove the node after some time period (only second-granularity is supported by etcd).

  8. def delete(dir: Boolean = false, recursive: Boolean = false): Future[NodeOp]

    Permalink

    Delete a node.

    Delete a node.

    If dir is not true and the key is a directory, this will operation fail.

    If dir and recursive are true, the entire tree is deleted.

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def events(recursive: Boolean = false, backoff: Stream[Duration] = ...): Event[Try[NodeOp]]

    Permalink

    An Event constructed by watching an etcd key.

    An Event constructed by watching an etcd key.

    If recursive is true, the key's subtree is observed for changes.

    When an unexpected error is encountered communicating with the API, the failure is published on the Event and the backoff stream is used to compute the time to wait before retrying. If the backoff stream is exhausted or a fatal error is encountered, it is reported and polling stops.

    The Event is not reference-counted, so each observer initiates its own polling loop. This ensures that the initial state of a tree is reported properly.

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(recursive: Boolean = false, wait: Boolean = false, waitIndex: Option[Long] = None, quorum: Boolean = false): Future[NodeOp]

    Permalink

    Set the contents of a key.

    Set the contents of a key.

    If recursive is true and this key is a directory, the returned Node contains the entire tree of children.

    If wait is true and waitIndex is specified, a response is not received until the node (or one of its children, if recursive is specified) is updated. If wait is true and waitIndex is not specified, a response is not received until the next update to this node (or its children, if recursive).

    If quorum is specified, etcd will ensure that the etcd instance is at quorum with the cluster.

  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def key(name: String): Key

    Permalink
  18. def key(path: Path): Key

    Permalink
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def path: Path

    Permalink
  23. def set(value: Option[Buf], ttl: Option[Duration] = None, prevExist: Boolean = false): Future[NodeOp]

    Permalink

    Set the contents of a key.

    Set the contents of a key.

    If value is None, the key is treated as a directory. In order to unset the value of a data node, use Some(Buf.Empty).

    Optionally, a ttl may be specified to inform etcd to remove the node after some time period (only second-granularity is supported by etcd).

    If prevExist is true, the node operation will fail if the node does not already exist.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped