Class LBCookieStickinessPolicy
- All Implemented Interfaces:
Serializable
,Cloneable
Information about a policy for duration-based session stickiness.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for LBCookieStickinessPolicy object.LBCookieStickinessPolicy
(String policyName, Long cookieExpirationPeriod) Constructs a new LBCookieStickinessPolicy object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The time period, in seconds, after which the cookie should be considered stale.The name for the policy being created.int
hashCode()
void
setCookieExpirationPeriod
(Long cookieExpirationPeriod) The time period, in seconds, after which the cookie should be considered stale.void
setPolicyName
(String policyName) The name for the policy being created.toString()
Returns a string representation of this object; useful for testing and debugging.withCookieExpirationPeriod
(Long cookieExpirationPeriod) The time period, in seconds, after which the cookie should be considered stale.withPolicyName
(String policyName) The name for the policy being created.
-
Constructor Details
-
LBCookieStickinessPolicy
public LBCookieStickinessPolicy()Default constructor for LBCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
LBCookieStickinessPolicy
Constructs a new LBCookieStickinessPolicy object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
policyName
- The name for the policy being created. The name must be unique within the set of policies for this load balancer.cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
-
-
Method Details
-
setPolicyName
The name for the policy being created. The name must be unique within the set of policies for this load balancer.
- Parameters:
policyName
- The name for the policy being created. The name must be unique within the set of policies for this load balancer.
-
getPolicyName
The name for the policy being created. The name must be unique within the set of policies for this load balancer.
- Returns:
- The name for the policy being created. The name must be unique within the set of policies for this load balancer.
-
withPolicyName
The name for the policy being created. The name must be unique within the set of policies for this load balancer.
- Parameters:
policyName
- The name for the policy being created. The name must be unique within the set of policies for this load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCookieExpirationPeriod
The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
- Parameters:
cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
-
getCookieExpirationPeriod
The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
- Returns:
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
-
withCookieExpirationPeriod
The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.
- Parameters:
cookieExpirationPeriod
- The time period, in seconds, after which the cookie should be considered stale. If this parameter is not specified, the stickiness session lasts for the duration of the browser session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-