code: private static int getTimeToLive(final Ticket ticket) {
          val expTime = ticket.getExpirationPolicy().getTimeToLive().intValue();
          if (TimeUnit.SECONDS.toDays(expTime) >= MAX_EXP_TIME_IN_DAYS) {
              LOGGER.warn("Any expiration time larger than [{}] days in seconds is considered absolute (as in a Unix time stamp) "
                  + "anything smaller is considered relative in seconds.", MAX_EXP_TIME_IN_DAYS);
  
          }
          return expTime;
      }
docs: Get the expiration policy value of the ticket in seconds.
  
  @param ticket the ticket
  @return the exp value
  @see <a href="http://docs.couchbase.com/developer/java-2.0/documents-basics.html">Couchbase Docs</a>