com.alipay.remoting
Class InvokeContext

java.lang.Object
  extended by com.alipay.remoting.InvokeContext

public class InvokeContext
extends Object

Invoke context


Field Summary
static String BOLT_CRC_SWITCH
           
static String BOLT_CUSTOM_SERIALIZER
           
static String BOLT_INVOKE_REQUEST_ID
           
static String BOLT_PROCESS_WAIT_TIME
          time consumed start from the time when request arrive, to the time when request be processed, this is a timespan
static String CLIENT_CONN_CREATETIME
          time consumed during connection creating, this is a timespan
static String CLIENT_LOCAL_IP
           
static String CLIENT_LOCAL_PORT
           
static String CLIENT_REMOTE_IP
           
static String CLIENT_REMOTE_PORT
           
static int INITIAL_SIZE
           
static String SERVER_LOCAL_IP
           
static String SERVER_LOCAL_PORT
           
static String SERVER_REMOTE_IP
           
static String SERVER_REMOTE_PORT
           
 
Constructor Summary
InvokeContext()
          default construct
 
Method Summary
 void clear()
          clear all mappings.
<T> T
get(String key)
          get
<T> T
get(String key, T defaultIfNotFound)
          get and use default if not found
 void put(String key, Object value)
          put
 void putIfAbsent(String key, Object value)
          put if absent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLIENT_LOCAL_IP

public static final String CLIENT_LOCAL_IP
See Also:
Constant Field Values

CLIENT_LOCAL_PORT

public static final String CLIENT_LOCAL_PORT
See Also:
Constant Field Values

CLIENT_REMOTE_IP

public static final String CLIENT_REMOTE_IP
See Also:
Constant Field Values

CLIENT_REMOTE_PORT

public static final String CLIENT_REMOTE_PORT
See Also:
Constant Field Values

CLIENT_CONN_CREATETIME

public static final String CLIENT_CONN_CREATETIME
time consumed during connection creating, this is a timespan

See Also:
Constant Field Values

SERVER_LOCAL_IP

public static final String SERVER_LOCAL_IP
See Also:
Constant Field Values

SERVER_LOCAL_PORT

public static final String SERVER_LOCAL_PORT
See Also:
Constant Field Values

SERVER_REMOTE_IP

public static final String SERVER_REMOTE_IP
See Also:
Constant Field Values

SERVER_REMOTE_PORT

public static final String SERVER_REMOTE_PORT
See Also:
Constant Field Values

BOLT_INVOKE_REQUEST_ID

public static final String BOLT_INVOKE_REQUEST_ID
See Also:
Constant Field Values

BOLT_PROCESS_WAIT_TIME

public static final String BOLT_PROCESS_WAIT_TIME
time consumed start from the time when request arrive, to the time when request be processed, this is a timespan

See Also:
Constant Field Values

BOLT_CUSTOM_SERIALIZER

public static final String BOLT_CUSTOM_SERIALIZER
See Also:
Constant Field Values

BOLT_CRC_SWITCH

public static final String BOLT_CRC_SWITCH
See Also:
Constant Field Values

INITIAL_SIZE

public static final int INITIAL_SIZE
See Also:
Constant Field Values
Constructor Detail

InvokeContext

public InvokeContext()
default construct

Method Detail

putIfAbsent

public void putIfAbsent(String key,
                        Object value)
put if absent

Parameters:
key -
value -

put

public void put(String key,
                Object value)
put

Parameters:
key -
value -

get

public <T> T get(String key)
get

Parameters:
key -
Returns:

get

public <T> T get(String key,
                 T defaultIfNotFound)
get and use default if not found

Type Parameters:
T -
Parameters:
key -
defaultIfNotFound -
Returns:

clear

public void clear()
clear all mappings.



Copyright © 2018. All rights reserved.