congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
TCPNIOTransport.connect
Code IndexAdd Tabnine to your IDE (free)

How to use
connect
method
in
org.glassfish.grizzly.nio.transport.TCPNIOTransport

Best Java code snippets using org.glassfish.grizzly.nio.transport.TCPNIOTransport.connect (Showing top 20 results out of 315)

origin: apache/incubator-dubbo

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
      .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: apache/incubator-dubbo

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
      .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: com.alibaba/dubbo-remoting-grizzly

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
      .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: org.apache.dubbo/dubbo

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
      .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: com.alibaba/dubbo

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
      .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: org.apache.dubbo/dubbo-remoting-grizzly

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
      .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: remoting/dubbox

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
          .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: remoting/dubbox

@Override
protected void doConnect() throws Throwable {
  connection = transport.connect(getConnectAddress())
          .get(getUrl().getPositiveParameter(Constants.TIMEOUT_KEY, Constants.DEFAULT_TIMEOUT), TimeUnit.MILLISECONDS);
}
origin: javaee/grizzly

Future<Connection> future = transport.connect(EchoServer.HOST,
    EchoServer.PORT);
origin: javaee/grizzly

transport.start();
Future<Connection> future = transport.connect("localhost", PORT);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
future = transport.connect("localhost", PORT);
try {
  future.get(10, TimeUnit.SECONDS);
future = transport.connect("localhost", PORT);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
origin: javaee/grizzly

Future<Connection> future = transport.connect("localhost", PORT);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
connection.closeSilently();
future = transport.connect("localhost", PORT + 1);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
future = transport.connect("localhost", PORT);
try {
  connection = future.get(10, TimeUnit.SECONDS);
future = transport.connect("localhost", PORT + 1);
try {
  connection = future.get(10, TimeUnit.SECONDS);
origin: javaee/grizzly

transport.connect(SSLEchoServer.HOST, SSLEchoServer.PORT);
origin: javaee/grizzly

Future<Connection> connectFuture = transport.connect(HOST, PORT);
try {
origin: javaee/grizzly

Future<Connection> connectFuture = transport.connect(HOST, PORT);
try {
origin: javaee/grizzly

Future<Connection> future = transport.connect(GIOPServer.HOST,
    GIOPServer.PORT);
origin: javaee/grizzly

public void setupClient() {
  clienttransport = TCPNIOTransportBuilder.newInstance().build();
  try {
    clienttransport.start();
    clienttransport.configureBlocking(false);
    clienttransport.configureStandalone(true);
    
    Future<Connection> future =
        clienttransport.connect("localhost", PORT);
    clientconnection = future.get(10, TimeUnit.SECONDS);
    assertTrue(clientconnection != null);
    clientconnection.configureStandalone(true);
    clientWriter =
        ((StandaloneProcessor) clientconnection.getProcessor()).
        getStreamWriter(clientconnection);
    
  } catch (Exception ex) {
    LOGGER.log(Level.SEVERE, "Client start error", ex);
  }
}
origin: javaee/grizzly

Future<Connection> future = transport.connect("localhost", PORT);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
origin: javaee/grizzly

transport.start();
Future<Connection> future = transport.connect("localhost", PORT);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
origin: javaee/grizzly

transport.start();
Future<Connection> future = transport.connect("localhost", PORT);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
origin: javaee/grizzly

Future<Connection> future = transport.connect("localhost", PORT);
connection = future.get(10, TimeUnit.SECONDS);
assertTrue(connection != null);
org.glassfish.grizzly.nio.transportTCPNIOTransportconnect

Javadoc

Creates, initializes and connects socket to the specific remote host and port and returns Connection, representing socket.

Popular methods of TCPNIOTransport

  • start
  • bind
  • setProcessor
  • shutdownNow
  • isStopped
  • getAsyncQueueIO
  • setTcpNoDelay
  • setLinger
  • unbind
  • getProcessor
  • getServerConnectionBackLog
    Get the default server connection backlog size.
  • setIOStrategy
  • getServerConnectionBackLog,
  • setIOStrategy,
  • setKeepAlive,
  • setSelectorRunnersCount,
  • setServerConnectionBackLog,
  • shutdown,
  • getLinger,
  • isKeepAlive,
  • isTcpNoDelay

Popular in Java

  • Running tasks concurrently on multiple threads
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Reference (javax.naming)
  • Top plugins for Android Studio
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