Class MemcachedSessionDataMapFactory
java.lang.Object
org.eclipse.jetty.memcached.session.MemcachedSessionDataMapFactory
- All Implemented Interfaces:
SessionDataMapFactory
MemcachedSessionDataMapFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List
<InetSocketAddress> protected int
protected boolean
protected int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
void
setAddresses
(InetSocketAddress... addresses) Set host and port address of memcached servers.void
setExpirySec
(int expiry) Set time in secs that memcached item remains valid.void
setHeartbeats
(boolean heartbeats) void
setWeights
(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:
getSessionDataMap
in interfaceSessionDataMapFactory
-