|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Connection | |
|---|---|
| com.alipay.remoting | |
| com.alipay.remoting.rpc | |
| com.alipay.remoting.util | |
| Uses of Connection in com.alipay.remoting |
|---|
| Fields in com.alipay.remoting with type parameters of type Connection | |
|---|---|
static io.netty.util.AttributeKey<Connection> |
Connection.CONNECTION
Attribute key for connection |
| Methods in com.alipay.remoting that return Connection | |
|---|---|
Connection |
ConnectionManager.create(String address,
int connectTimeout)
Create a connection using specified String address. |
Connection |
DefaultConnectionManager.create(String address,
int connectTimeout)
|
Connection |
ConnectionManager.create(String ip,
int port,
int connectTimeout)
Create a connection using specified ip and port. |
Connection |
DefaultConnectionManager.create(String ip,
int port,
int connectTimeout)
|
Connection |
ConnectionManager.create(Url url)
Create a connection using specified Url. |
Connection |
DefaultConnectionManager.create(Url url)
|
Connection |
ConnectionFactory.createConnection(String targetIP,
int targetPort,
byte version,
int connectTimeout)
Create a connection according to the IP and port. |
Connection |
ConnectionFactory.createConnection(String targetIP,
int targetPort,
int connectTimeout)
Create a connection according to the IP and port. |
Connection |
ConnectionFactory.createConnection(Url url)
Create a connection use #BoltUrl |
Connection |
ConnectionPool.get()
get a connection |
Connection |
ConnectionManager.get(String poolKey)
Get a connection from ConnectionPool with the specified poolKey. |
Connection |
DefaultConnectionManager.get(String poolKey)
|
Connection |
ConnectionManager.getAndCreateIfAbsent(Url url)
Get a connection using Url, if null then create and add into ConnectionPool. |
Connection |
DefaultConnectionManager.getAndCreateIfAbsent(Url url)
If no task cached, create one and initialize the connections. |
Connection |
BizContext.getConnection()
get the connection of this request |
Connection |
DefaultBizContext.getConnection()
|
Connection |
RemotingContext.getConnection()
Get connection from channel |
Connection |
ConnectionSelectStrategy.select(List<Connection> conns)
select strategy |
Connection |
RandomSelectStrategy.select(List<Connection> conns)
|
| Methods in com.alipay.remoting that return types with arguments of type Connection | |
|---|---|
Map<String,List<Connection>> |
ScheduledDisconnectStrategy.filter(List<Connection> connections)
Filter connections to monitor |
Map<String,List<Connection>> |
ConnectionMonitorStrategy.filter(List<Connection> connections)
Filter connections to monitor |
Map<String,List<Connection>> |
ConnectionManager.getAll()
Get all connections of all poolKey. |
Map<String,List<Connection>> |
DefaultConnectionManager.getAll()
Get all connections of all poolKey. |
List<Connection> |
ConnectionPool.getAll()
get all connections |
List<Connection> |
ConnectionManager.getAll(String poolKey)
Get all connections from ConnectionPool with the specified poolKey. |
List<Connection> |
DefaultConnectionManager.getAll(String poolKey)
|
| Methods in com.alipay.remoting with parameters of type Connection | |
|---|---|
void |
ConnectionManager.add(Connection connection)
Add a connection to ConnectionPool. |
void |
DefaultConnectionManager.add(Connection connection)
|
void |
ConnectionPool.add(Connection connection)
add a connection |
void |
ConnectionManager.add(Connection connection,
String poolKey)
Add a connection to ConnectionPool with the specified poolKey. |
void |
DefaultConnectionManager.add(Connection connection,
String poolKey)
|
void |
ConnectionManager.check(Connection connection)
check a connection whether available, if not, throw RemotingException |
void |
DefaultConnectionManager.check(Connection connection)
|
boolean |
ConnectionPool.contains(Connection connection)
check weather a connection already added |
protected abstract InvokeFuture |
BaseRemoting.createInvokeFuture(Connection conn,
RemotingCommand request,
InvokeContext invokeContext,
InvokeCallback invokeCallback)
Create invoke future with InvokeContext. |
void |
ConnectionHeartbeatManager.disableHeartbeat(Connection connection)
disable heart beat for a certain connection |
void |
DefaultConnectionManager.disableHeartbeat(Connection connection)
|
void |
ConnectionHeartbeatManager.enableHeartbeat(Connection connection)
enable heart beat for a certain connection |
void |
DefaultConnectionManager.enableHeartbeat(Connection connection)
|
protected RemotingCommand |
BaseRemoting.invokeSync(Connection conn,
RemotingCommand request,
int timeoutMillis)
Synchronous invocation |
protected void |
BaseRemoting.invokeWithCallback(Connection conn,
RemotingCommand request,
InvokeCallback invokeCallback,
int timeoutMillis)
Invocation with callback. |
protected InvokeFuture |
BaseRemoting.invokeWithFuture(Connection conn,
RemotingCommand request,
int timeoutMillis)
Invocation with future returned. |
void |
ConnectionEventListener.onEvent(ConnectionEventType type,
String remoteAddr,
Connection conn)
Dispatch events. |
void |
ConnectionEventProcessor.onEvent(String remoteAddr,
Connection conn)
Process event. |
protected void |
BaseRemoting.oneway(Connection conn,
RemotingCommand request)
Oneway invocation. |
void |
ConnectionManager.remove(Connection connection)
Remove a Connection from all ConnectionPool with the poolKeys in Connection, and close it. |
void |
DefaultConnectionManager.remove(Connection connection)
|
void |
ConnectionManager.remove(Connection connection,
String poolKey)
Remove and close a Connection from ConnectionPool with the specified poolKey. |
void |
DefaultConnectionManager.remove(Connection connection,
String poolKey)
|
void |
ConnectionPool.removeAndTryClose(Connection connection)
removeAndTryClose a connection |
| Method parameters in com.alipay.remoting with type arguments of type Connection | |
|---|---|
Map<String,List<Connection>> |
ScheduledDisconnectStrategy.filter(List<Connection> connections)
Filter connections to monitor |
Map<String,List<Connection>> |
ConnectionMonitorStrategy.filter(List<Connection> connections)
Filter connections to monitor |
Connection |
ConnectionSelectStrategy.select(List<Connection> conns)
select strategy |
Connection |
RandomSelectStrategy.select(List<Connection> conns)
|
| Uses of Connection in com.alipay.remoting.rpc |
|---|
| Methods in com.alipay.remoting.rpc that return Connection | |
|---|---|
Connection |
RpcConnectionFactory.createConnection(String targetIP,
int targetPort,
byte version,
int connectTimeout)
|
Connection |
RpcConnectionFactory.createConnection(String targetIP,
int targetPort,
int connectTimeout)
|
Connection |
RpcConnectionFactory.createConnection(Url url)
|
Connection |
RpcClient.createStandaloneConnection(String addr,
int connectTimeout)
Create a stand alone connection using address, address format example - 127.0.0.1:12200 Notice: Each time you can this method, will create a new connection. |
Connection |
RpcClient.createStandaloneConnection(String ip,
int port,
int connectTimeout)
Create a stand alone connection using ip and port. |
Connection |
RpcClient.getConnection(String addr,
int connectTimeout)
Get a connection using address, address format example - 127.0.0.1:12200? |
Connection |
RpcClient.getConnection(Url url,
int connectTimeout)
Get a connection using a Url. |
protected Connection |
RpcClientRemoting.getConnectionAndInitInvokeContext(Url url,
InvokeContext invokeContext)
Get connection and set init invokeContext if invokeContext not null |
| Methods in com.alipay.remoting.rpc that return types with arguments of type Connection | |
|---|---|
Map<String,List<Connection>> |
RpcClient.getAllManagedConnections()
get all connections managed by rpc client |
| Methods in com.alipay.remoting.rpc with parameters of type Connection | |
|---|---|
void |
RpcClient.closeStandaloneConnection(Connection conn)
Close a standalone connection |
protected InvokeFuture |
RpcRemoting.createInvokeFuture(Connection conn,
RemotingCommand request,
InvokeContext invokeContext,
InvokeCallback invokeCallback)
|
Object |
RpcServer.invokeSync(Connection conn,
Object request,
int timeoutMillis)
Synchronous invocation using a Connection Notice: DO NOT modify the request object concurrently when this method is called. |
Object |
RpcClient.invokeSync(Connection conn,
Object request,
int timeoutMillis)
Synchronous invocation using a Connection Notice: DO NOT modify the request object concurrently when this method is called. |
Object |
RpcServer.invokeSync(Connection conn,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Synchronous invocation with a InvokeContext, common api notice please see RpcServer.invokeSync(Connection, Object, int) |
Object |
RpcRemoting.invokeSync(Connection conn,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Synchronous rpc invocation. |
Object |
RpcClient.invokeSync(Connection conn,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Synchronous invocation with a InvokeContext, common api notice please see RpcClient.invokeSync(Connection, Object, int) |
void |
RpcServer.invokeWithCallback(Connection conn,
Object request,
InvokeCallback invokeCallback,
int timeoutMillis)
Callback invocation using a Connection You can specify an implementation of InvokeCallback to get the result. |
void |
RpcClient.invokeWithCallback(Connection conn,
Object request,
InvokeCallback invokeCallback,
int timeoutMillis)
Callback invocation using a Connection You can specify an implementation of InvokeCallback to get the result. |
void |
RpcServer.invokeWithCallback(Connection conn,
Object request,
InvokeContext invokeContext,
InvokeCallback invokeCallback,
int timeoutMillis)
Callback invocation with a InvokeContext, common api notice please see RpcServer.invokeWithCallback(Connection, Object, InvokeCallback, int) |
void |
RpcRemoting.invokeWithCallback(Connection conn,
Object request,
InvokeContext invokeContext,
InvokeCallback invokeCallback,
int timeoutMillis)
Rpc invocation with callback. |
void |
RpcClient.invokeWithCallback(Connection conn,
Object request,
InvokeContext invokeContext,
InvokeCallback invokeCallback,
int timeoutMillis)
Callback invocation with a InvokeContext, common api notice please see RpcClient.invokeWithCallback(Connection, Object, InvokeCallback, int) |
RpcResponseFuture |
RpcServer.invokeWithFuture(Connection conn,
Object request,
int timeoutMillis)
Future invocation using a Connection You can get result use the returned RpcResponseFuture. |
RpcResponseFuture |
RpcClient.invokeWithFuture(Connection conn,
Object request,
int timeoutMillis)
Future invocation using a Connection You can get result use the returned RpcResponseFuture. |
RpcResponseFuture |
RpcServer.invokeWithFuture(Connection conn,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Future invocation with a InvokeContext, common api notice please see RpcServer.invokeWithFuture(Connection, Object, int) |
RpcResponseFuture |
RpcRemoting.invokeWithFuture(Connection conn,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Rpc invocation with future returned. |
RpcResponseFuture |
RpcClient.invokeWithFuture(Connection conn,
Object request,
InvokeContext invokeContext,
int timeoutMillis)
Future invocation with a InvokeContext, common api notice please see RpcClient.invokeWithFuture(Connection, Object, int) |
void |
RpcServer.oneway(Connection conn,
Object request)
One way invocation using a Connection Notice: DO NOT modify the request object concurrently when this method is called. |
void |
RpcClient.oneway(Connection conn,
Object request)
One way invocation using a Connection Notice: DO NOT modify the request object concurrently when this method is called. |
void |
RpcServer.oneway(Connection conn,
Object request,
InvokeContext invokeContext)
One way invocation with a InvokeContext, common api notice please see RpcServer.oneway(Connection, Object) |
void |
RpcRemoting.oneway(Connection conn,
Object request,
InvokeContext invokeContext)
Oneway rpc invocation. |
void |
RpcClient.oneway(Connection conn,
Object request,
InvokeContext invokeContext)
Oneway invocation with a InvokeContext, common api notice please see RpcClient.oneway(Connection, Object) |
protected void |
RpcClientRemoting.preProcessInvokeContext(InvokeContext invokeContext,
RemotingCommand cmd,
Connection connection)
|
protected void |
RpcServerRemoting.preProcessInvokeContext(InvokeContext invokeContext,
RemotingCommand cmd,
Connection connection)
|
protected abstract void |
RpcRemoting.preProcessInvokeContext(InvokeContext invokeContext,
RemotingCommand cmd,
Connection connection)
|
protected RemotingCommand |
RpcRemoting.toRemotingCommand(Object request,
Connection conn,
InvokeContext invokeContext,
int timeoutMillis)
Convert application request object to remoting request command. |
| Uses of Connection in com.alipay.remoting.util |
|---|
| Methods in com.alipay.remoting.util that return Connection | |
|---|---|
static Connection |
ConnectionUtil.getConnectionFromChannel(io.netty.channel.Channel channel)
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||