本文整理汇总了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;
}
示例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);
}
示例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;
}
示例4: getStorage
import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
@Override
public Storage getStorage() {
return storage;
}
示例5: SafeStorage
import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
SafeStorage(Storage delegate) {
this.delegate = Preconditions.checkNotNull(delegate);
}
示例6: getStorage
import com.google.ipc.invalidation.external.client.SystemResources.Storage; //导入依赖的package包/类
/** Returns the storage. */
public Storage getStorage() {
return storage;
}
示例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;
}