Codota Logo
StateMachine$FsmImpl.setState
Code IndexAdd Codota to your IDE (free)

How to use
setState
method
in
org.apache.statemachine.StateMachine$FsmImpl

Best Java code snippets using org.apache.statemachine.StateMachine$FsmImpl.setState (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.apache.omid/statemachine

boolean processEvent(Event e) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: Received event {}@{} in state {}@{}",
         getFsmId(), e.getClass().getSimpleName(),
         System.identityHashCode(e),
         state.getClass().getSimpleName(),
         System.identityHashCode(state));
  }
  try {
    State newState = state.dispatch(e);
    if (newState != state) {
      setState(state, newState);
      return true;
    }
  } catch (Throwable t) {
    LOG.error("Caught throwable while handling event", t);
    errorDeferredEvents(t);
  }
  return false;
}
origin: org.apache.omid/omid-statemachine

boolean processEvent(Event e) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("FSM-{}: Received event {}@{} in state {}@{}",
         getFsmId(), e.getClass().getSimpleName(),
         System.identityHashCode(e),
         state.getClass().getSimpleName(),
         System.identityHashCode(state));
  }
  try {
    State newState = state.dispatch(e);
    if (newState != state) {
      setState(state, newState);
      return true;
    }
  } catch (Throwable t) {
    LOG.error("Caught throwable while handling event", t);
    errorDeferredEvents(t);
  }
  return false;
}
org.apache.statemachineStateMachine$FsmImplsetState

Popular methods of StateMachine$FsmImpl

  • <init>
  • errorDeferredEvents
  • getFsmId
  • processEvent

Popular in Java

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now