当前位置: 首页>>代码示例>>Java>>正文


Java Storage类代码示例

本文整理汇总了Java中com.google.ipc.invalidation.external.client.SystemResources.Storage的典型用法代码示例。如果您正苦于以下问题:Java Storage类的具体用法?Java Storage怎么用?Java Storage使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Storage类属于com.google.ipc.invalidation.external.client.SystemResources包,在下文中一共展示了Storage类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: SystemResourcesBuilder

import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
/** See specs at {@code DefaultResourcesFactory.createDefaultResourcesBuilder}. */
public SystemResourcesBuilder(Logger logger, Scheduler internalScheduler,
    Scheduler listenerScheduler, NetworkChannel network, Storage storage) {
  this.logger = logger;
  this.internalScheduler = internalScheduler;
  this.listenerScheduler = listenerScheduler;
  this.network = network;
  this.storage = storage;
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:10,代码来源:SystemResourcesBuilder.java

示例2: AndroidResources

import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
/** Creates an instance for test from the provided resources and context. */

AndroidResources(Logger logger, AndroidInternalScheduler internalScheduler,
    NetworkChannel network, Storage storage, Context context) {
  super(logger, internalScheduler, new InvalidScheduler(), network, storage,
      getPlatformString());
  this.context = Preconditions.checkNotNull(context);
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:9,代码来源:ResourcesFactory.java

示例3: createResourcesBuilder

import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
/**
 * Constructs a {@link SystemResourcesBuilder} instance using default scheduling, Android-style
 * logging, and storage, and using {@code network} to send and receive messages.
 */
public static SystemResourcesBuilder createResourcesBuilder(String logPrefix,
    NetworkChannel network, Storage storage) {
  SystemResourcesBuilder builder = new SystemResourcesBuilder(AndroidLogger.forPrefix(logPrefix),
        new ExecutorBasedScheduler("ticl" + logPrefix),
        new ExecutorBasedScheduler("ticl-listener" + logPrefix),
        network, storage);
  builder.setPlatform("Android-" + android.os.Build.VERSION.RELEASE);
  return builder;
}
 
开发者ID:morristech,项目名称:android-chromium,代码行数:14,代码来源:AndroidResourcesFactory.java

示例4: getStorage

import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
@Override
public Storage getStorage() {
  return storage;
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:5,代码来源:InvalidationClientCore.java

示例5: SafeStorage

import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
SafeStorage(Storage delegate) {
  this.delegate = Preconditions.checkNotNull(delegate);
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:4,代码来源:SafeStorage.java

示例6: getStorage

import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
/** Returns the storage. */
public Storage getStorage() {
  return storage;
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:5,代码来源:SystemResourcesBuilder.java

示例7: setStorage

import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
/**
 * Sets the persistence layer to be {@code storage}.
 * <p>
 * REQUIRES: {@link #build} has not been called.
 */
public SystemResourcesBuilder setStorage(Storage storage) {
  Preconditions.checkState(!sealed, "Builder's build method has already been called");
  this.storage = storage;
  return this;
}
 
开发者ID:mogoweb,项目名称:365browser,代码行数:11,代码来源:SystemResourcesBuilder.java


注:本文中的com.google.ipc.invalidation.external.client.SystemResources.Storage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。