org.jclouds.date.TimeStamp.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(151)

本文整理了Java中org.jclouds.date.TimeStamp.<init>()方法的一些代码示例,展示了TimeStamp.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TimeStamp.<init>()方法的具体详情如下:
包路径:org.jclouds.date.TimeStamp
类名称:TimeStamp
方法名:<init>

TimeStamp.<init>介绍

暂无

代码示例

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@TimeStamp
protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
 return cache.get();
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@TimeStamp
protected Long provideTimeStamp(@TimeStamp Supplier<Long> cache) {
 return cache.get();
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@TimeStamp
protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
 return cache.get();
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@TimeStamp
protected Long unixEpochTimestampProvider() {
 return System.currentTimeMillis() / 1000; /* convert to seconds */
}

代码示例来源:origin: jclouds/legacy-jclouds

@Inject
public SignRequest(SignatureWire signatureWire, @org.jclouds.location.Provider Supplier<Credentials> creds,
   @TimeStamp Provider<String> timeStampProvider, Crypto crypto, HttpUtils utils) {
 this.signatureWire = signatureWire;
 this.creds = creds;
 this.timeStampProvider = timeStampProvider;
 this.crypto = crypto;
 this.utils = utils;
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@TimeStamp
protected String provideTimeStamp(DateService dateService) {
 return dateService.iso8601DateFormat(new Date(System.currentTimeMillis()));
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
   return "Thu, 05 Jun 2008 16:38:19 GMT";
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

/**
* borrowing concurrency code to ensure that caching takes place properly
*/
@Provides
@TimeStamp
Supplier<Long> provideTimeStampCache(@Named(PROPERTY_SESSION_INTERVAL) long seconds) {
 return Suppliers.memoizeWithExpiration(new Supplier<Long>() {
   public Long get() {
    return System.currentTimeMillis() / 1000;
   }
 }, seconds, TimeUnit.SECONDS);
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
   return "Thu, 05 Jun 2008 16:38:19 GMT";
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@TimeStamp
protected String provideTimeStamp(DateService dateService) {
 return dateService.rfc1123DateFormat(new Date(System.currentTimeMillis()));
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
   return "2009-11-08T15:54:08.897Z";
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
   return "2009-11-08T15:54:08.897Z";
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
   return "2009-11-08T15:54:08.897Z";
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
   return DEFAULT_DATE;
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected Long provideTimeStamp(@TimeStamp Supplier<Long> cache) {
   return 1267243795L;
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
  @Singleton
  @TimeStamp
  protected Supplier<Date> provideCacheBusterDate() {
   return memoizeWithExpiration(new Supplier<Date>() {
     public Date get() {
      return new Date();
     }
   }, 1, TimeUnit.SECONDS);
  }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Inject
public SharedKeyLiteAuthentication(SignatureWire signatureWire,
   @org.jclouds.location.Provider Supplier<Credentials> creds, @TimeStamp Provider<String> timeStampProvider,
   Crypto crypto, HttpUtils utils) {
 this.crypto = crypto;
 this.utils = utils;
 this.signatureWire = signatureWire;
 this.creds = creds;
 this.timeStampProvider = timeStampProvider;
}

代码示例来源:origin: jclouds/legacy-jclouds

@Inject
public RestAuthentication(@org.jclouds.location.Provider Supplier<Credentials> creds,
   @TimeStamp Provider<String> timeStampProvider, Crypto crypto) {
 this.creds = creds;
 this.timeStampProvider = timeStampProvider;
 this.crypto = crypto;
}

代码示例来源:origin: jclouds/legacy-jclouds

@Override
 protected String provideTimeStamp(@TimeStamp Supplier<String> cache) {
   return "Thu, 05 Jun 2008 16:38:19 GMT";
 }
}

代码示例来源:origin: jclouds/legacy-jclouds

@Inject
public ShareUrl(@Provider Supplier<Credentials> creds, @Provider Supplier<URI> provider,
   @TimeStamp javax.inject.Provider<Long> timeStampProvider, Crypto crypto) {
 this.creds = creds;
 this.provider = provider;
 this.timeStampProvider = timeStampProvider;
 this.crypto = crypto;
}

相关文章

TimeStamp类方法