class SessionOptions extends AnyRef
Options used to create session.
- Alphabetic
- By Inheritance
- SessionOptions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new SessionOptions(_asJava: ext.consul.SessionOptions)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJava: ext.consul.SessionOptions
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def getBehavior: SessionBehavior
- def getChecks: Buffer[String]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getLockDelay: Long
- def getName: String
- def getNode: String
- def getTtl: Long
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
setBehavior(value: SessionBehavior): SessionOptions
Set the behavior when a session is invalidated.
Set the behavior when a session is invalidated. The release behavior is the default if none is specified.
-
def
setChecks(value: Buffer[String]): SessionOptions
Set a list of associated health checks.
Set a list of associated health checks. It is highly recommended that, if you override this list, you include the default "serfHealth"
-
def
setLockDelay(value: Long): SessionOptions
Set the lock-delay period.
-
def
setName(value: String): SessionOptions
Set the human-readable name for the Session
-
def
setNode(value: String): SessionOptions
Set the node to which the session will be assigned
-
def
setTtl(value: Long): SessionOptions
Set the TTL interval.
Set the TTL interval. When TTL interval expires without being renewed, the session has expired and an invalidation is triggered. If specified, it must be between
10s
and86400s
currently.The contract of a TTL is that it represents a lower bound for invalidation; that is, Consul will not expire the session before the TTL is reached, but it is allowed to delay the expiration past the TTL.
The lowest practical TTL should be used to keep the number of managed sessions low. When locks are forcibly expired, such as during a leader election, sessions may not be reaped for up to double this TTL, so long TTL values (> 1 hour) should be avoided.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )