com.twitter.finagle.exp.zookeeper.client

PreProcessService

class PreProcessService extends Service[Request, RepPacket]

LocalService is used to send ZooKeeper request to the endpoint. In client life, connection or session changes can happen, during those moments we are not able to send request because either the connection is down or the session is not established. For these reasons, during connection/reconnection/changeHost we can lock the service until the situation is back to normal.

Linear Supertypes
Service[Request, RepPacket], Closable, (Request) ⇒ Future[RepPacket], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PreProcessService
  2. Service
  3. Closable
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PreProcessService(connectionManager: ConnectionManager, sessionManager: SessionManager, linkChecker: AutoLinkManager)

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[A](g: (Future[RepPacket]) ⇒ A): (Request) ⇒ A

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  7. def apply(req: Request): Future[RepPacket]

    Should send a request to the dispatcher, this request will be checked by isROCheck before, to make sure this is not a Write operation and that we are currently on read-only mode.

    Should send a request to the dispatcher, this request will be checked by isROCheck before, to make sure this is not a Write operation and that we are currently on read-only mode. Then the connection and session are possibly checked with tryCheckLink depending if we are already trying to reconnect. Next the request is prepared : transformed to a ReqPacket, by adding opCode and xid. It is finally sent to the service owned by the current connection object.

    req

    a Request

    returns

    a Future[RepPacket] in response to the request

    Definition Classes
    PreProcessService → Service → Function1
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close(deadline: Time): Future[Unit]

    Definition Classes
    Service → Closable
  11. def close(after: Duration): Future[Unit]

    Definition Classes
    Closable
  12. final def close(): Future[Unit]

    Definition Classes
    Closable
  13. def compose[A](g: (A) ⇒ Request): (A) ⇒ Future[RepPacket]

    Definition Classes
    Function1
    Annotations
    @unspecialized()
  14. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  16. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  19. def isAvailable: Boolean

    Definition Classes
    Service
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def map[Req1](f: (Req1) ⇒ Request): Service[Req1, RepPacket]

    Definition Classes
    Service
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    Function1 → AnyRef → Any
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. final def release(): Unit

    Definition Classes
    Service
    Annotations
    @deprecated
    Deprecated

    (Since version 7.0.0) Use close() instead

Inherited from Service[Request, RepPacket]

Inherited from Closable

Inherited from (Request) ⇒ Future[RepPacket]

Inherited from AnyRef

Inherited from Any

Ungrouped