Tabnine Logo
AstWriteAwaitNode.getRegionInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
getRegionInfo
method
in
org.kaazing.k3po.lang.internal.ast.AstWriteAwaitNode

Best Java code snippets using org.kaazing.k3po.lang.internal.ast.AstWriteAwaitNode.getRegionInfo (Showing top 2 results out of 315)

origin: k3po/k3po

@Override
public Configuration visit(AstWriteAwaitNode node, State state) {
  RegionInfo regionInfo = node.getRegionInfo();
  String barrierName = node.getBarrierName();
  Barrier barrier = state.lookupBarrier(barrierName);
  AwaitBarrierDownstreamHandler handler = new AwaitBarrierDownstreamHandler(barrier);
  handler.setRegionInfo(regionInfo);
  Map<String, ChannelHandler> pipelineAsMap = state.pipelineAsMap;
  String handlerName = String.format("write.await#%d", pipelineAsMap.size() + 1);
  pipelineAsMap.put(handlerName, handler);
  state.configuration.getBarriers().add(barrier);
  return state.configuration;
}
origin: k3po/k3po

@Override
public AstWriteAwaitNode visitWriteAwaitNode(WriteAwaitNodeContext ctx) {
  AstWriteAwaitNodeVisitor visitor = new AstWriteAwaitNodeVisitor(factory, environment);
  AstWriteAwaitNode writeAwaitNode = visitor.visitWriteAwaitNode(ctx);
  if (writeAwaitNode != null) {
    childInfos().add(writeAwaitNode.getRegionInfo());
  }
  return writeAwaitNode;
}
org.kaazing.k3po.lang.internal.astAstWriteAwaitNodegetRegionInfo

Popular methods of AstWriteAwaitNode

  • <init>
  • getBarrierName
  • setBarrierName
  • setRegionInfo

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSharedPreferences (Context)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • JLabel (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 14 Best Plugins for Eclipse
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