<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_10_0.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">


  <!-- ===================================================================== -->
  <!-- Configure a factory for GCloudSessionDataStores                       -->
  <!-- ===================================================================== -->
  <Call name="addBean">
   <Arg>
    <New id="sessionDataStoreFactory" class="org.eclipse.jetty.gcloud.session.GCloudSessionDataStoreFactory">
       <Set name="gracePeriodSec" property="jetty.session.gracePeriod.seconds"/>
       <Set name="savePeriodSec" property="jetty.session.savePeriod.seconds"/>
       <Set name="maxRetries" property="jetty.session.gcloud.maxRetries"/>
       <Set name="backoffMs" property="jetty.session.gcloud.backoffMs"/>
       <Set name="namespace" property="jetty.session.gcloud.namespace"/>
       <Set name="host" property="jetty.session.gcloud.host"/>
       <Set name="projectId" property="jetty.session.gcloud.projectId"/>
       <Set name="entityDataModel">
          <New class="org.eclipse.jetty.gcloud.session.GCloudSessionDataStore$EntityDataModel">
              <Set name="kind" property="jetty.session.gcloud.model.kind"/>
              <Set name="id" property="jetty.session.gcloud.model.id"/>
              <Set name="contextPath" property="jetty.session.gcloud.model.contextPath"/>
              <Set name="vhost" property="jetty.session.gcloud.model.vhost"/>
              <Set name="accessed" property="jetty.session.gcloud.model.accessed"/>
              <Set name="lastAccessed" property="jetty.session.gcloud.model.lastAccessed"/>
              <Set name="createTime" property="jetty.session.gcloud.model.createTime"/>
              <Set name="cookieSetTime" property="jetty.session.gcloud.model.cookieSetTime"/>
              <Set name="lastNode" property="jetty.session.gcloud.model.lastNode"/>
              <Set name="lastSaved" property="jetty.session.gcloud.model.lastSaved"/>
              <Set name="expiry" property="jetty.session.gcloud.model.expiry"/>
              <Set name="maxInactive" property="jetty.session.gcloud.model.maxInactive"/>
              <Set name="attributes" property="jetty.session.gcloud.model.attributes"/>
          </New>
       </Set>
    </New>
   </Arg>
  </Call>
  
</Configure>
