Class MemcachedSessionDataMapFactory
java.lang.Object
org.eclipse.jetty.memcached.session.MemcachedSessionDataMapFactory
- All Implemented Interfaces:
SessionDataMapFactory
MemcachedSessionDataMapFactory
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<InetSocketAddress>
protected int
protected boolean
protected int[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
setAddresses
(InetSocketAddress... addresses) void
setExpirySec
(int expiry) void
setHeartbeats
(boolean heartbeats) void
setWeights
(int[] weights)
-
Field Details
-
_expiry
protected int _expiry -
_heartbeats
protected boolean _heartbeats -
_weights
protected int[] _weights -
_addresses
-
-
Constructor Details
-
MemcachedSessionDataMapFactory
public MemcachedSessionDataMapFactory()
-
-
Method Details
-
setAddresses
- 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
- Specified by:
getSessionDataMap
in interfaceSessionDataMapFactory
-