public class InvokeContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BOLT_CRC_SWITCH |
static String |
BOLT_CUSTOM_SERIALIZER |
static String |
BOLT_INVOKE_REQUEST_ID |
static String |
BOLT_PROCESS_ARRIVE_BODY_IN_NANO |
static String |
BOLT_PROCESS_ARRIVE_HEADER_IN_NANO
time request arrived in nano seconds , collected by System.nanoTime()
|
static String |
BOLT_PROCESS_BEFORE_DISPATCH_IN_NANO
time before send request to user thread in nano seconds , collected by System.nanoTime()
|
static String |
BOLT_PROCESS_CLIENT_AFTER_SEND
time after send request to net in nano seconds , collected by System.nanoTime()
|
static String |
BOLT_PROCESS_CLIENT_BEFORE_SEND
time before send request to net in nano seconds , collected by System.nanoTime()
|
static String |
BOLT_PROCESS_CLIENT_RECEIVED
time after receive response from server in nano seconds , collected by System.nanoTime()
|
static String |
BOLT_PROCESS_START_PROCESS_IN_NANO
time before send request to user thread in nano seconds , collected by System.nanoTime()
|
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_CREATE_END_IN_NANO |
static String |
CLIENT_CONN_CREATE_START_IN_NANO |
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 and Description |
|---|
InvokeContext()
default construct
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final String CLIENT_LOCAL_IP
public static final String CLIENT_LOCAL_PORT
public static final String CLIENT_REMOTE_IP
public static final String CLIENT_REMOTE_PORT
public static final String CLIENT_CONN_CREATETIME
public static final String CLIENT_CONN_CREATE_START_IN_NANO
public static final String CLIENT_CONN_CREATE_END_IN_NANO
public static final String SERVER_LOCAL_IP
public static final String SERVER_LOCAL_PORT
public static final String SERVER_REMOTE_IP
public static final String SERVER_REMOTE_PORT
public static final String BOLT_INVOKE_REQUEST_ID
public static final String BOLT_PROCESS_WAIT_TIME
public static final String BOLT_PROCESS_ARRIVE_HEADER_IN_NANO
public static final String BOLT_PROCESS_ARRIVE_BODY_IN_NANO
public static final String BOLT_PROCESS_BEFORE_DISPATCH_IN_NANO
public static final String BOLT_PROCESS_START_PROCESS_IN_NANO
public static final String BOLT_CUSTOM_SERIALIZER
public static final String BOLT_CRC_SWITCH
public static final String BOLT_PROCESS_CLIENT_BEFORE_SEND
public static final String BOLT_PROCESS_CLIENT_AFTER_SEND
public static final String BOLT_PROCESS_CLIENT_RECEIVED
public static final int INITIAL_SIZE
public void putIfAbsent(String key, Object value)
key - value - public <T> T get(String key)
key - public <T> T get(String key, T defaultIfNotFound)
T - key - defaultIfNotFound - public void clear()
Copyright © 2024. All rights reserved.