Class

uk.co.appministry.akka.zk.ZkRequestProtocol

Connect

Related Doc: package ZkRequestProtocol

Permalink

final case class Connect(connectionString: String = ..., connectionAttempts: Int = ..., sessionTimeout: FiniteDuration = ..., sessionId: Option[Long] = ZkClientProtocolDefaults.SessionId, sessionPassword: Option[Array[Byte]] = ..., canBeReadOnly: Boolean = ...) extends Request with Product with Serializable

Connect to the server.

connectionString

comma separated host:port pairs, each corresponding to a zk server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" If the optional chroot suffix is used the example would look like: "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002/app/a" where the client would be rooted at "/app/a" and all paths would be relative to this root - ie getting/setting/etc... "/foo/bar" would result in operations being run on "/app/a/foo/bar" (from the server perspective).

connectionAttempts

how many times to retry a failed connect attempt

sessionTimeout

session timeout

sessionId

specific session id to use if reconnecting

sessionPassword

password for this session

canBeReadOnly

whether the created client is allowed to go to read-only mode in case of partitioning. Read-only mode basically means that if the client can't find any majority servers but there's partitioned server it could reach, it connects to one in read-only mode, i.e. read requests are allowed while write requests are not. It continues seeking for majority in the background.

Linear Supertypes
Serializable, Serializable, Product, Equals, Request, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Connect
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Request
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Connect(connectionString: String = ..., connectionAttempts: Int = ..., sessionTimeout: FiniteDuration = ..., sessionId: Option[Long] = ZkClientProtocolDefaults.SessionId, sessionPassword: Option[Array[Byte]] = ..., canBeReadOnly: Boolean = ...)

    Permalink

    connectionString

    comma separated host:port pairs, each corresponding to a zk server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" If the optional chroot suffix is used the example would look like: "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002/app/a" where the client would be rooted at "/app/a" and all paths would be relative to this root - ie getting/setting/etc... "/foo/bar" would result in operations being run on "/app/a/foo/bar" (from the server perspective).

    connectionAttempts

    how many times to retry a failed connect attempt

    sessionTimeout

    session timeout

    sessionId

    specific session id to use if reconnecting

    sessionPassword

    password for this session

    canBeReadOnly

    whether the created client is allowed to go to read-only mode in case of partitioning. Read-only mode basically means that if the client can't find any majority servers but there's partitioned server it could reach, it connects to one in read-only mode, i.e. read requests are allowed while write requests are not. It continues seeking for majority in the background.

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. val canBeReadOnly: Boolean

    Permalink

    whether the created client is allowed to go to read-only mode in case of partitioning.

    whether the created client is allowed to go to read-only mode in case of partitioning. Read-only mode basically means that if the client can't find any majority servers but there's partitioned server it could reach, it connects to one in read-only mode, i.e. read requests are allowed while write requests are not. It continues seeking for majority in the background.

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val connectionAttempts: Int

    Permalink

    how many times to retry a failed connect attempt

  8. val connectionString: String

    Permalink

    comma separated host:port pairs, each corresponding to a zk server.

    comma separated host:port pairs, each corresponding to a zk server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" If the optional chroot suffix is used the example would look like: "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002/app/a" where the client would be rooted at "/app/a" and all paths would be relative to this root - ie getting/setting/etc... "/foo/bar" would result in operations being run on "/app/a/foo/bar" (from the server perspective).

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

    Permalink
    Definition Classes
    AnyRef
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. val sessionId: Option[Long]

    Permalink

    specific session id to use if reconnecting

  17. val sessionPassword: Option[Array[Byte]]

    Permalink

    password for this session

  18. val sessionTimeout: FiniteDuration

    Permalink

    session timeout

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

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

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

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

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

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Request

Inherited from AnyRef

Inherited from Any

Ungrouped