congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IndexRegistry.forInterest
Code IndexAdd Tabnine to your IDE (free)

How to use
forInterest
method
in
com.netflix.eureka2.interests.IndexRegistry

Best Java code snippets using com.netflix.eureka2.interests.IndexRegistry.forInterest (Showing top 4 results out of 315)

origin: com.netflix.eureka/eureka2-client

@Override
public Observable<ChangeNotification<T>> forInterest(Interest<T> interest,
                           Observable<ChangeNotification<T>> dataSource,
                           InitStateHolder<T> initStateHolder) {
  return mergeWithBatchRegistryHints(interest, delegateRegistry.forInterest(interest, dataSource, initStateHolder));
}
origin: com.netflix.eureka2/eureka-write-server

/**
 * Return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 * @param interest
 * @return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 */
@Override
public Observable<ChangeNotification<InstanceInfo>> forInterest(Interest<InstanceInfo> interest) {
  try {
    // TODO: this method can be run concurrently from different channels, unless we run everything on single server event loop.
    // It is possible that the same instance info will be both in snapshot and paused notification queue.
    notificationSubject.pause(); // Pause notifications till we get a snapshot of current registry (registry.values())
    if (interest instanceof MultipleInterests) {
      return indexRegistry.forCompositeInterest((MultipleInterests) interest, this);
    } else {
      return indexRegistry.forInterest(interest, notificationSubject,
          new InstanceInfoInitStateHolder(getSnapshotForInterest(interest)));
    }
  } finally {
    notificationSubject.resume();
  }
}
origin: com.netflix.eureka2/eureka-client

/**
 * Return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 * @param interest
 * @return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 */
@Override
public Observable<ChangeNotification<InstanceInfo>> forInterest(Interest<InstanceInfo> interest) {
  try {
    // TODO: this method can be run concurrently from different channels, unless we run everything on single server event loop.
    notificationSubject.pause(); // Pause notifications till we get a snapshot of current registry (registry.values())
    if (interest instanceof MultipleInterests) {
      return indexRegistry.forCompositeInterest((MultipleInterests) interest, this);
    } else {
      return indexRegistry.forInterest(interest, notificationSubject,
          new InstanceInfoInitStateHolder(getSnapshotForInterest(interest)));
    }
  } finally {
    notificationSubject.resume();
  }
}
origin: com.netflix.eureka/eureka2-core

/**
 * Return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 * @param interest
 * @return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 */
@Override
public Observable<ChangeNotification<InstanceInfo>> forInterest(Interest<InstanceInfo> interest) {
  try {
    // TODO: this method can be run concurrently from different channels, unless we run everything on single server event loop.
    // It is possible that the same instanceinfo will be both in snapshot and paused notification queue.
    pauseableSubject.pause(); // Pause notifications till we get a snapshot of current registry (registry.values())
    if (interest instanceof MultipleInterests) {
      return indexRegistry.forCompositeInterest((MultipleInterests) interest, this);
    } else {
      return indexRegistry.forInterest(interest, pauseableSubject,
          new InstanceInfoInitStateHolder(getSnapshotForInterest(interest), interest));
    }
  } finally {
    pauseableSubject.resume();
  }
}
com.netflix.eureka2.interestsIndexRegistryforInterest

Popular methods of IndexRegistry

  • forCompositeInterest
  • shutdown

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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