Tabnine Logo
WeakOuter
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.google.j2objc.annotations.WeakOuter (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: prestodb/presto

@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);
 }
}
com.google.j2objc.annotationsWeakOuter

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Permission (java.security)
    Legacy security code; do not use.
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Best IntelliJ plugins
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