congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MulticastConnector.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.kaazing.gateway.transport.bio.MulticastConnector
constructor

Best Java code snippets using org.kaazing.gateway.transport.bio.MulticastConnector.<init> (Showing top 2 results out of 315)

origin: kaazing/gateway

MulticastTransport() {
  acceptor = new MulticastAcceptor();
  connector = new MulticastConnector();
}
origin: kaazing/gateway

@Override
public ConnectFuture connect(ResourceAddress address,
               IoHandler handler,
               IoSessionInitializer<? extends ConnectFuture> initializer) {
  boolean useMCP = false;
  try {
    String uri = address.getExternalURI();
    InetAddress inet = InetAddress.getByName(URIUtils.getHost(uri));
    if (inet.isMulticastAddress()) {
      useMCP = true;
    }
  } catch (Exception e) {
    // do nothing
  }
  if (useMCP) {
    MulticastConnector connector = new MulticastConnector();
    connector.setConfiguration(getProperties());
    connector.setResourceAddressFactory(resourceAddressFactory);
    connector.setBridgeServiceFactory(bridgeServiceFactory);
    return connector.connect(address, handler, initializer);
  } else {
    return super.connect(address, handler, initializer);
  }
}
org.kaazing.gateway.transport.bioMulticastConnector<init>

Popular methods of MulticastConnector

  • connect
  • setBridgeServiceFactory
  • setConfiguration
  • setResourceAddressFactory

Popular in Java

  • Making http post requests using okhttp
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JButton (javax.swing)
  • JOptionPane (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
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