Code example for SimpleTimeLimiter

0
      } 
 
      @Provides 
      @Singleton 
      TimeLimiter timeLimiter(@Named(PROPERTY_USER_THREADS) ListeningExecutorService userExecutor){ 
         return new SimpleTimeLimiter(userExecutor); 
      } 
   } 
 
   protected void assertPayloadEquals(HttpRequest request, String toMatch, String contentType, boolean contentMD5) { 
      assertPayloadEquals(request, toMatch, contentType, contentMD5, null); 
   } 
 
   protected void assertPayloadEquals(HttpRequest request, String toMatch, String contentType, boolean contentMD5, Date expires) { 
      assertPayloadEquals(request, toMatch, contentType, null, null, null, contentMD5, expires); 
   } 
 
   protected void assertPayloadEquals(HttpRequest request, String toMatch, String contentType, 
         String contentDispositon, String contentEncoding, String contentLanguage, boolean contentMD5) { 
      assertPayloadEquals(request, toMatch, contentType, contentDispositon, contentEncoding, contentLanguage,