congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MulticastConnector
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.kaazing.gateway.transport.bio.MulticastConnector (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

Most used methods

  • <init>
  • connect
  • setBridgeServiceFactory
  • setConfiguration
  • setResourceAddressFactory

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • BoxLayout (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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