Codota Logo
TCP.getSocketFactory
Code IndexAdd Codota to your IDE (free)

How to use
getSocketFactory
method
in
org.jgroups.protocols.TCP

Best Java code snippets using org.jgroups.protocols.TCP.getSocketFactory (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: wildfly/wildfly

public void start() throws Exception {
  server=new TcpServer(getThreadFactory(), getSocketFactory(), bind_addr, bind_port, bind_port+port_range, external_addr, external_port);
  server.receiver(this)
   .timeService(time_service)
   .receiveBufferSize(recv_buf_size)
   .sendBufferSize(send_buf_size)
   .socketConnectionTimeout(sock_conn_timeout)
   .tcpNodelay(tcp_nodelay).linger(linger)
   .clientBindAddress(client_bind_addr).clientBindPort(client_bind_port).deferClientBinding(defer_client_bind_addr)
   .log(this.log);
  server.setBufferedInputStreamSize(buffered_input_stream_size).setBufferedOutputStreamSize(buffered_output_stream_size)
   .peerAddressReadTimeout(peer_addr_read_timeout)
   .usePeerConnections(true)
   .socketFactory(getSocketFactory());
  if(reaper_interval > 0 || conn_expire_time > 0) {
    if(reaper_interval == 0) {
      reaper_interval=5000;
      log.warn("reaper_interval was 0, set it to %d", reaper_interval);
    }
    if(conn_expire_time == 0) {
      conn_expire_time=(long) 1000 * 60 * 5;
      log.warn("conn_expire_time was 0, set it to %d", conn_expire_time);
    }
    server.connExpireTimeout(conn_expire_time).reaperInterval(reaper_interval);
  }
  // we first start threads in TP (http://jira.jboss.com/jira/browse/JGRP-626)
  super.start();
}

origin: org.jboss.eap/wildfly-client-all

public void start() throws Exception {
  server=new TcpServer(getThreadFactory(), getSocketFactory(), bind_addr, bind_port, bind_port+port_range, external_addr, external_port);
  server.receiver(this)
   .timeService(time_service)
   .receiveBufferSize(recv_buf_size)
   .sendBufferSize(send_buf_size)
   .socketConnectionTimeout(sock_conn_timeout)
   .tcpNodelay(tcp_nodelay).linger(linger)
   .clientBindAddress(client_bind_addr).clientBindPort(client_bind_port).deferClientBinding(defer_client_bind_addr)
   .log(this.log);
  server.setBufferedInputStreamSize(buffered_input_stream_size).setBufferedOutputStreamSize(buffered_output_stream_size)
   .peerAddressReadTimeout(peer_addr_read_timeout)
   .usePeerConnections(true)
   .socketFactory(getSocketFactory());
  if(reaper_interval > 0 || conn_expire_time > 0) {
    if(reaper_interval == 0) {
      reaper_interval=5000;
      log.warn("reaper_interval was 0, set it to %d", reaper_interval);
    }
    if(conn_expire_time == 0) {
      conn_expire_time=(long) 1000 * 60 * 5;
      log.warn("conn_expire_time was 0, set it to %d", conn_expire_time);
    }
    server.connExpireTimeout(conn_expire_time).reaperInterval(reaper_interval);
  }
  // we first start threads in TP (http://jira.jboss.com/jira/browse/JGRP-626)
  super.start();
}

org.jgroups.protocolsTCPgetSocketFactory

Popular methods of TCP

  • getThreadFactory
  • getBindAddress
  • getConnExpireTime
  • getConnectionTable
  • getEndPort
  • getOpenConnections
  • getReaperInterval
  • getStartPort
  • printConnections
  • setBindAddress
  • setConnExpireTime
  • setEndPort
  • setConnExpireTime,
  • setEndPort,
  • setReaperInterval,
  • setStartPort

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getResourceAsStream (ClassLoader)
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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