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

How to use
CircuitStateChangedEvent
in
org.apache.shardingsphere.orchestration.internal.registry.state.event

Best Java code snippets using org.apache.shardingsphere.orchestration.internal.registry.state.event.CircuitStateChangedEvent (Showing top 4 results out of 315)

origin: apache/incubator-shardingsphere

/**
 * Renew circuit breaker state.
 *
 * @param circuitStateChangedEvent circuit state changed event
 */
@Subscribe
public synchronized void renew(final CircuitStateChangedEvent circuitStateChangedEvent) {
  isCircuitBreak = circuitStateChangedEvent.isCircuitBreak();
}

origin: apache/incubator-shardingsphere

  @Override
  protected CircuitStateChangedEvent createShardingOrchestrationEvent(final DataChangedEvent event) {
    return new CircuitStateChangedEvent(StateNodeStatus.DISABLED.toString().equalsIgnoreCase(event.getValue()));
  }
}
origin: apache/incubator-shardingsphere

  /**
   /**
   * Renew circuit breaker state.
   *
   * @param circuitStateChangedEvent circuit state changed event
   */
  @Subscribe
  public final synchronized void renew(final CircuitStateChangedEvent circuitStateChangedEvent) {
    isCircuitBreak = circuitStateChangedEvent.isCircuitBreak();
  }
}
origin: apache/incubator-shardingsphere

/**
 * Renew circuit breaker state.
 *
 * @param circuitStateChangedEvent circuit state changed event
 */
@Subscribe
public synchronized void renew(final CircuitStateChangedEvent circuitStateChangedEvent) {
  isCircuitBreak = circuitStateChangedEvent.isCircuitBreak();
}

org.apache.shardingsphere.orchestration.internal.registry.state.eventCircuitStateChangedEvent

Javadoc

Circuit state event.

Most used methods

  • isCircuitBreak
  • <init>

Popular in Java

  • Finding current android device location
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • 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