com.google.ipc.invalidation.external.client.SystemResources.Storage Java Examples
The following examples show how to use
com.google.ipc.invalidation.external.client.SystemResources.Storage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SystemResourcesBuilder.java From 365browser with Apache License 2.0 | 5 votes |
/** 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; }
Example #2
Source File: SystemResourcesBuilder.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** 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; }
Example #3
Source File: ResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** 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); }
Example #4
Source File: AndroidResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * 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; }
Example #5
Source File: AndroidResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** * 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; }
Example #6
Source File: SystemResourcesBuilder.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** 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; }
Example #7
Source File: ResourcesFactory.java From android-chromium with BSD 2-Clause "Simplified" License | 5 votes |
/** 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); }
Example #8
Source File: SystemResourcesBuilder.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
/** * 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; }
Example #9
Source File: InvalidationClientCore.java From 365browser with Apache License 2.0 | 4 votes |
@Override public Storage getStorage() { return storage; }
Example #10
Source File: SystemResourcesBuilder.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
/** Returns the storage. */ public Storage getStorage() { return storage; }
Example #11
Source File: SafeStorage.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
SafeStorage(Storage delegate) { this.delegate = Preconditions.checkNotNull(delegate); }
Example #12
Source File: InvalidationClientCore.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public Storage getStorage() { return storage; }
Example #13
Source File: SystemResourcesBuilder.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
/** * 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; }
Example #14
Source File: SystemResourcesBuilder.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
/** Returns the storage. */ public Storage getStorage() { return storage; }
Example #15
Source File: SafeStorage.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
SafeStorage(Storage delegate) { this.delegate = Preconditions.checkNotNull(delegate); }
Example #16
Source File: InvalidationClientCore.java From android-chromium with BSD 2-Clause "Simplified" License | 4 votes |
@Override public Storage getStorage() { return storage; }
Example #17
Source File: SystemResourcesBuilder.java From 365browser with Apache License 2.0 | 4 votes |
/** * 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; }
Example #18
Source File: SystemResourcesBuilder.java From 365browser with Apache License 2.0 | 4 votes |
/** Returns the storage. */ public Storage getStorage() { return storage; }
Example #19
Source File: SafeStorage.java From 365browser with Apache License 2.0 | 4 votes |
SafeStorage(Storage delegate) { this.delegate = Preconditions.checkNotNull(delegate); }