Class MemcachedSessionDataMapFactory
- java.lang.Object
-
- org.eclipse.jetty.memcached.session.MemcachedSessionDataMapFactory
-
- All Implemented Interfaces:
SessionDataMapFactory
public class MemcachedSessionDataMapFactory extends java.lang.Object implements SessionDataMapFactory
MemcachedSessionDataMapFactory
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.net.InetSocketAddress>
_addresses
protected int
_expiry
protected boolean
_heartbeats
protected int[]
_weights
-
Constructor Summary
Constructors Constructor Description MemcachedSessionDataMapFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExpirySec()
SessionDataMap
getSessionDataMap()
boolean
isHeartbeats()
void
setAddresses(java.net.InetSocketAddress... addresses)
void
setExpirySec(int expiry)
void
setHeartbeats(boolean heartbeats)
void
setWeights(int[] weights)
-
-
-
Method Detail
-
setAddresses
public void setAddresses(java.net.InetSocketAddress... addresses)
- Parameters:
addresses
- host and port address of memcached servers
-
setWeights
public void setWeights(int[] weights)
- Parameters:
weights
- the relative weight to give each server in the list of addresses
-
getExpirySec
public int getExpirySec()
-
setExpirySec
public void setExpirySec(int expiry)
- Parameters:
expiry
- time in secs that memcached item remains valid
-
isHeartbeats
public boolean isHeartbeats()
-
setHeartbeats
public void setHeartbeats(boolean heartbeats)
-
getSessionDataMap
public SessionDataMap getSessionDataMap()
- Specified by:
getSessionDataMap
in interfaceSessionDataMapFactory
- See Also:
SessionDataMapFactory.getSessionDataMap()
-
-