congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
InterestChannel
Code IndexAdd Tabnine to your IDE (free)

How to use
InterestChannel
in
com.netflix.eureka2.channel

Best Java code snippets using com.netflix.eureka2.channel.InterestChannel (Showing top 8 results out of 315)

origin: com.netflix.eureka/eureka2-client

  @Override
  public Observable<Void> asLifecycleObservable() {
    return delegate.asLifecycleObservable();
  }
}
origin: com.netflix.eureka/eureka2-client

  @Override
  public Observable<Void> call(InterestChannel interestChannel, Interest<InstanceInfo> interest) {
    return interestChannel.change(interest);
  }
};
origin: com.netflix.eureka/eureka2-client

@Override
public void close() {
  try {
    shutdown();
  } finally {
    delegate.close();
  }
}
origin: com.netflix.eureka/eureka2-client

@Override
public void close(Throwable error) {
  try {
    shutdown();
  } finally {
    delegate.close(error);
  }
}
origin: com.netflix.eureka/eureka2-server

Observable<Void> lifecycleObservable = channelFactory.newChannel().asLifecycleObservable();
lifecycleObservable.subscribe(new Subscriber<Void>() {
  @Override
origin: com.netflix.eureka/eureka2-client

@Override
public Observable<Void> call() throws Exception {
  return delegate.change(newInterest);
}
origin: com.netflix.eureka2/eureka-server

Observable<Void> lifecycleObservable = service.newInterestChannel().asLifecycleObservable();
lifecycleObservable.subscribe(new Subscriber<Void>() {
  @Override
origin: com.netflix.eureka/eureka2-test-utils

@Override
public Observable<Void> change(Interest<InstanceInfo> newInterest) {
  operations.add(newInterest);
  return delegate.change(newInterest);
}
com.netflix.eureka2.channelInterestChannel

Javadoc

A ServiceChannel implementation for interest set notifications. The channel interest can be upgraded any number of times as long as the channel is open. The following are the states of an InterestChannel
  • Idle: Channel is created but no streams are flowing
  • Open: Channel is open and interest stream is flowing (can be empty stream due to empty interest)
  • Close: Channel closed. Nothing can be done on this channel anymore.

Most used methods

  • asLifecycleObservable
  • change
    An operation to change the interest set for this channel to a new interest set. When this change is
  • close

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Sublime Text 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