public class LBCookieStickinessPolicy extends Object implements Serializable
Information about a policy for duration-based session stickiness.
| Constructor and Description |
|---|
LBCookieStickinessPolicy()
Default constructor for LBCookieStickinessPolicy object.
|
LBCookieStickinessPolicy(String policyName,
Long cookieExpirationPeriod)
Constructs a new LBCookieStickinessPolicy object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Long |
getCookieExpirationPeriod()
The time period, in seconds, after which the cookie should be considered
stale.
|
String |
getPolicyName()
The name of the policy.
|
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 of the policy.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LBCookieStickinessPolicy |
withCookieExpirationPeriod(Long cookieExpirationPeriod)
The time period, in seconds, after which the cookie should be considered
stale.
|
LBCookieStickinessPolicy |
withPolicyName(String policyName)
The name of the policy.
|
public LBCookieStickinessPolicy()
public LBCookieStickinessPolicy(String policyName, Long cookieExpirationPeriod)
policyName - The name of the policy. This 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.
public String getPolicyName()
The name of the policy. This name must be unique within the set of policies for this load balancer.
The name of the policy. This name must be unique within the set of policies for this load balancer.
public void setPolicyName(String policyName)
The name of the policy. This name must be unique within the set of policies for this load balancer.
policyName - The name of the policy. This name must be unique within the set of policies for this load balancer.
public LBCookieStickinessPolicy withPolicyName(String policyName)
The name of the policy. This name must be unique within the set of policies for this load balancer.
Returns a reference to this object so that method calls can be chained together.
policyName - The name of the policy. This name must be unique within the set of policies for this load balancer.
public Long 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.
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.
public void setCookieExpirationPeriod(Long 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.
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.
public LBCookieStickinessPolicy withCookieExpirationPeriod(Long 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 a reference to this object so that method calls can be chained together.
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.
public String toString()
toString in class ObjectObject.toString()Copyright © 2018. All rights reserved.