com.google.ipc.invalidation.ticl.BasicSystemResources Java Examples

The following examples show how to use com.google.ipc.invalidation.ticl.BasicSystemResources. 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 vote down vote up
/**
 * Builds the {@code SystemResources} object with the given resource components and returns it.
 * <p>
 * Caller must not call any mutation method (on this SystemResourcesBuilder) after
 * {@code build} has been called (i.e., build and the set* methods)
 */
public SystemResources build() {
  Preconditions.checkState(!sealed, "Builder's build method has already been called");
  seal();
  return new BasicSystemResources(logger, internalScheduler, listenerScheduler, network, storage,
      platform);
}
 
Example #2
Source File: SystemResourcesBuilder.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Builds the {@code SystemResources} object with the given resource components and returns it.
 * <p>
 * Caller must not call any mutation method (on this SystemResourcesBuilder) after
 * {@code build} has been called (i.e., build and the set* methods)
 */
public SystemResources build() {
  Preconditions.checkState(!sealed, "Builder's build method has already been called");
  seal();
  return new BasicSystemResources(logger, internalScheduler, listenerScheduler, network, storage,
      platform);
}
 
Example #3
Source File: SystemResourcesBuilder.java    From android-chromium with BSD 2-Clause "Simplified" License 5 votes vote down vote up
/**
 * Builds the {@code SystemResources} object with the given resource components and returns it.
 * <p>
 * Caller must not call any mutation method (on this SystemResourcesBuilder) after
 * {@code build} has been called (i.e., build and the set* methods)
 */
public SystemResources build() {
  Preconditions.checkState(!sealed, "Builder's build method has already been called");
  seal();
  return new BasicSystemResources(logger, internalScheduler, listenerScheduler, network, storage,
      platform);
}