Tabnine Logo
WeakOuter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.google.j2objc.annotations.WeakOuter
constructor

Best Java code snippets using com.google.j2objc.annotations.WeakOuter.<init> (Showing top 20 results out of 315)

origin: google/guava

@WeakOuter
private final class IsStartableGuard extends Guard {
 IsStartableGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state() == NEW;
 }
}
origin: google/guava

@WeakOuter
private final class ThreadNameSupplier implements Supplier<String> {
 @Override
 public String get() {
  return serviceName() + " " + state();
 }
}
origin: google/guava

@WeakOuter
private final class HasReachedRunningGuard extends Guard {
 HasReachedRunningGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().compareTo(RUNNING) >= 0;
 }
}
origin: google/guava

@WeakOuter
private final class IsStoppedGuard extends Guard {
 IsStoppedGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().isTerminal();
 }
}
origin: google/guava

@WeakOuter
final class StoppedGuard extends Monitor.Guard {
 StoppedGuard() {
  super(ServiceManagerState.this.monitor);
 }
 @Override
 @GuardedBy("ServiceManagerState.this.monitor")
 public boolean isSatisfied() {
  return states.count(TERMINATED) + states.count(FAILED) == numberOfServices;
 }
}
origin: google/guava

@WeakOuter
private final class IsStoppableGuard extends Guard {
 IsStoppableGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().compareTo(RUNNING) <= 0;
 }
}
origin: google/guava

@WeakOuter
final class AwaitHealthGuard extends Monitor.Guard {
 AwaitHealthGuard() {
  super(ServiceManagerState.this.monitor);
 }
 @Override
 @GuardedBy("ServiceManagerState.this.monitor")
 public boolean isSatisfied() {
  // All services have started or some service has terminated/failed.
  return states.count(RUNNING) == numberOfServices
    || states.contains(STOPPING)
    || states.contains(TERMINATED)
    || states.contains(FAILED);
 }
}
origin: prestodb/presto

@WeakOuter
private final class IsStartableGuard extends Guard {
 IsStartableGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state() == NEW;
 }
}
origin: prestodb/presto

@WeakOuter
private final class IsStoppableGuard extends Guard {
 IsStoppableGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().compareTo(RUNNING) <= 0;
 }
}
origin: prestodb/presto

@WeakOuter
private final class ThreadNameSupplier implements Supplier<String> {
 @Override
 public String get() {
  return serviceName() + " " + state();
 }
}
origin: prestodb/presto

@WeakOuter
private final class HasReachedRunningGuard extends Guard {
 HasReachedRunningGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().compareTo(RUNNING) >= 0;
 }
}
origin: prestodb/presto

@WeakOuter
private final class IsStoppedGuard extends Guard {
 IsStoppedGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().isTerminal();
 }
}
origin: prestodb/presto

@WeakOuter
final class StoppedGuard extends Monitor.Guard {
 StoppedGuard() {
  super(ServiceManagerState.this.monitor);
 }
 @Override
 @GuardedBy("ServiceManagerState.this.monitor")
 public boolean isSatisfied() {
  return states.count(TERMINATED) + states.count(FAILED) == numberOfServices;
 }
}
origin: google/guava

@WeakOuter
class Task implements Runnable {
 @Override
 public void run() {
  lock.lock();
  try {
   if (runningTask.isCancelled()) {
    // task may have been cancelled while blocked on the lock.
    return;
   }
   AbstractScheduledService.this.runOneIteration();
  } catch (Throwable t) {
   try {
    shutDown();
   } catch (Exception ignored) {
    logger.log(
      Level.WARNING,
      "Error while attempting to shut down the service after failure.",
      ignored);
   }
   notifyFailed(t);
   runningTask.cancel(false); // prevent future invocations.
  } finally {
   lock.unlock();
  }
 }
}
origin: google/j2objc

@WeakOuter
private final class ThreadNameSupplier implements Supplier<String> {
 @Override
 public String get() {
  return serviceName() + " " + state();
 }
}
origin: google/j2objc

@WeakOuter
final class StoppedGuard extends Monitor.Guard {
 StoppedGuard() {
  super(ServiceManagerState.this.monitor);
 }
 @Override
 @GuardedBy("ServiceManagerState.this.monitor")
 public boolean isSatisfied() {
  return states.count(TERMINATED) + states.count(FAILED) == numberOfServices;
 }
}
origin: google/j2objc

@WeakOuter
private final class IsStoppableGuard extends Guard {
 IsStoppableGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().compareTo(RUNNING) <= 0;
 }
}
origin: google/j2objc

@WeakOuter
private final class HasReachedRunningGuard extends Guard {
 HasReachedRunningGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().compareTo(RUNNING) >= 0;
 }
}
origin: google/j2objc

@WeakOuter
private final class IsStoppedGuard extends Guard {
 IsStoppedGuard() {
  super(AbstractService.this.monitor);
 }
 @Override
 public boolean isSatisfied() {
  return state().isTerminal();
 }
}
origin: google/guava

/**
 * Abstract set whose {@code isEmpty()} returns whether the table is empty and whose {@code
 * clear()} clears all table mappings.
 */
@WeakOuter
private abstract class TableSet<T> extends ImprovedAbstractSet<T> {
 @Override
 public boolean isEmpty() {
  return backingMap.isEmpty();
 }
 @Override
 public void clear() {
  backingMap.clear();
 }
}
com.google.j2objc.annotationsWeakOuter<init>

Popular methods of WeakOuter

    Popular in Java

    • Making http requests using okhttp
    • compareTo (BigDecimal)
    • getApplicationContext (Context)
    • scheduleAtFixedRate (ScheduledExecutorService)
    • ResultSet (java.sql)
      An interface for an object which represents a database table entry, returned as the result of the qu
    • Timer (java.util)
      Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
    • Stream (java.util.stream)
      A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
    • BoxLayout (javax.swing)
    • JButton (javax.swing)
    • Get (org.apache.hadoop.hbase.client)
      Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
    • From CI to AI: The AI layer in your organization
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now