- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
/** * 初始化上下文 * * @param soaHeader */ private static void initContext(SoaHeader soaHeader) { InvocationContext context = InvocationContext.Factory.getCurrentInstance(); context.setSeqid(BaseServiceClient.seqid_.incrementAndGet()); try { soaHeader.setCallerIp(Optional.of(InetAddress.getLocalHost().getHostAddress())); } catch (UnknownHostException e) { LOGGER.error(e.getMessage(), e); } context.setHeader(soaHeader); context.setCalleeTimeout(45000); }
protected void initContext(String methodName) { InvocationContext context = InvocationContext.Factory.getCurrentInstance(); context.setSeqid(seqid_.incrementAndGet());
protected void initContext(String methodName) { InvocationContext context = InvocationContext.Factory.getCurrentInstance(); context.setSeqid(getSeqId().incrementAndGet());