public class MemcachedSessionDataMapFactory extends Object implements SessionDataMapFactory
Modifier and Type | Field and Description |
---|---|
protected List<InetSocketAddress> |
_addresses |
protected int |
_expiry |
protected boolean |
_heartbeats |
protected int[] |
_weights |
Constructor and Description |
---|
MemcachedSessionDataMapFactory() |
Modifier and Type | Method and Description |
---|---|
int |
getExpirySec() |
SessionDataMap |
getSessionDataMap() |
boolean |
isHeartbeats() |
void |
setAddresses(InetSocketAddress... addresses) |
void |
setExpirySec(int expiry) |
void |
setHeartbeats(boolean heartbeats) |
void |
setWeights(int[] weights) |
protected int _expiry
protected boolean _heartbeats
protected int[] _weights
protected List<InetSocketAddress> _addresses
public void setAddresses(InetSocketAddress... addresses)
addresses
- host and port address of memcached serverspublic void setWeights(int[] weights)
weights
- the relative weight to give each server in the list of addressespublic int getExpirySec()
public void setExpirySec(int expiry)
expiry
- time in secs that memcached item remains validpublic boolean isHeartbeats()
public void setHeartbeats(boolean heartbeats)
public SessionDataMap getSessionDataMap()
getSessionDataMap
in interface SessionDataMapFactory
SessionDataMapFactory.getSessionDataMap()
Copyright © 1995–2017 Webtide. All rights reserved.