Class MemcachedSessionDataMapFactory
java.lang.Object
org.eclipse.jetty.memcached.session.MemcachedSessionDataMapFactory
- All Implemented Interfaces:
 SessionDataMapFactory
MemcachedSessionDataMapFactory
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<InetSocketAddress> protected intprotected booleanprotected int[] - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionintbooleanvoidsetAddresses(InetSocketAddress... addresses) Set host and port address of memcached servers.voidsetExpirySec(int expiry) Set time in secs that memcached item remains valid.voidsetHeartbeats(boolean heartbeats) voidsetWeights(int[] weights) Set the relative weight to give each server in the list of addresses. 
- 
Field Details
- 
_expiry
protected int _expiry - 
_heartbeats
protected boolean _heartbeats - 
_weights
protected int[] _weights - 
_addresses
 
 - 
 - 
Constructor Details
- 
MemcachedSessionDataMapFactory
public MemcachedSessionDataMapFactory() 
 - 
 - 
Method Details
- 
setAddresses
Set host and port address of memcached servers.- Parameters:
 addresses- host and port address of memcached servers
 - 
setWeights
public void setWeights(int[] weights) Set the relative weight to give each server in the list of addresses.- Parameters:
 weights- the relative weight to give each server in the list of addresses
 - 
getExpirySec
public int getExpirySec() - 
setExpirySec
public void setExpirySec(int expiry) Set time in secs that memcached item remains valid.- Parameters:
 expiry- time in secs that memcached item remains valid
 - 
isHeartbeats
public boolean isHeartbeats() - 
setHeartbeats
public void setHeartbeats(boolean heartbeats)  - 
getSessionDataMap
- Specified by:
 getSessionDataMapin interfaceSessionDataMapFactory
 
 -