com.alibaba.dubbo.remoting
Class Transporters

java.lang.Object
  extended by com.alibaba.dubbo.remoting.Transporters

public class Transporters
extends Object

Transporter facade. (API, Static, ThreadSafe)

Author:
william.liangf

Method Summary
static Server bind(String url, ChannelHandler... handler)
           
static Server bind(URL url, ChannelHandler... handlers)
           
static Client connect(String url, ChannelHandler... handler)
           
static Client connect(URL url, ChannelHandler... handlers)
           
static Transporter getTransporter()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

bind

public static Server bind(String url,
                          ChannelHandler... handler)
                   throws RemotingException
Throws:
RemotingException

bind

public static Server bind(URL url,
                          ChannelHandler... handlers)
                   throws RemotingException
Throws:
RemotingException

connect

public static Client connect(String url,
                             ChannelHandler... handler)
                      throws RemotingException
Throws:
RemotingException

connect

public static Client connect(URL url,
                             ChannelHandler... handlers)
                      throws RemotingException
Throws:
RemotingException

getTransporter

public static Transporter getTransporter()


Copyright © 2012–2017 Alibaba. All rights reserved.