Class MemcachedSessionDataMapFactory

java.lang.Object
org.eclipse.jetty.memcached.session.MemcachedSessionDataMapFactory
All Implemented Interfaces:
SessionDataMapFactory

public class MemcachedSessionDataMapFactory extends Object implements SessionDataMapFactory
MemcachedSessionDataMapFactory
  • Field Details

    • _expiry

      protected int _expiry
    • _heartbeats

      protected boolean _heartbeats
    • _weights

      protected int[] _weights
    • _addresses

      protected List<InetSocketAddress> _addresses
  • Constructor Details

    • MemcachedSessionDataMapFactory

      public MemcachedSessionDataMapFactory()
  • Method Details

    • setAddresses

      public void setAddresses(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 interface SessionDataMapFactory