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