com.alipay.remoting
Interface BizContext

All Known Implementing Classes:
DefaultBizContext

public interface BizContext

basic info for biz


Method Summary
 String get(String key)
          get value
 long getArriveTimestamp()
          get the arrive time stamp
 int getClientTimeout()
          get the timeout value from rpc client.
 Connection getConnection()
          get the connection of this request
 InvokeContext getInvokeContext()
          get invoke context.
 String getRemoteAddress()
          get remote address
 String getRemoteHost()
          get remote host ip
 int getRemotePort()
          get remote port
 boolean isRequestTimeout()
          check whether request already timeout
 void put(String key, String value)
          put a key and value
 

Method Detail

getRemoteAddress

String getRemoteAddress()
get remote address

Returns:

getRemoteHost

String getRemoteHost()
get remote host ip

Returns:

getRemotePort

int getRemotePort()
get remote port

Returns:

getConnection

Connection getConnection()
get the connection of this request

Returns:

isRequestTimeout

boolean isRequestTimeout()
check whether request already timeout

Returns:
true if already timeout, you can log some useful info and then discard this request.

getClientTimeout

int getClientTimeout()
get the timeout value from rpc client.

Returns:

getArriveTimestamp

long getArriveTimestamp()
get the arrive time stamp

Returns:

put

void put(String key,
         String value)
put a key and value


get

String get(String key)
get value

Parameters:
key -
Returns:

getInvokeContext

InvokeContext getInvokeContext()
get invoke context.

Returns:


Copyright © 2018. All rights reserved.