congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TxTransactionLocal.getTxGroupId
Code IndexAdd Tabnine to your IDE (free)

How to use
getTxGroupId
method
in
org.dromara.raincat.core.concurrent.threadlocal.TxTransactionLocal

Best Java code snippets using org.dromara.raincat.core.concurrent.threadlocal.TxTransactionLocal.getTxGroupId (Showing top 4 results out of 315)

origin: yu199195/Raincat

@Override
public void apply(final RequestTemplate requestTemplate) {
  requestTemplate.header(CommonConstant.TX_TRANSACTION_GROUP, TxTransactionLocal.getInstance().getTxGroupId());
}
origin: yu199195/Raincat

  @Override
  public ClientHttpResponse intercept(final HttpRequest request, final byte[] body, final ClientHttpRequestExecution execution) throws IOException {
    request.getHeaders().add(CommonConstant.TX_TRANSACTION_GROUP, TxTransactionLocal.getInstance().getTxGroupId());
    return execution.execute(request, body);
  }
}
origin: yu199195/Raincat

  @Override
  public Response filter(final Caller<?> caller, final Request request) {
    request.setAttachment(CommonConstant.TX_TRANSACTION_GROUP, TxTransactionLocal.getInstance().getTxGroupId());
    return caller.call(request);
  }
}
origin: yu199195/Raincat

  @Override
  public Result invoke(final Invoker<?> invoker, final Invocation invocation) throws RpcException {
    if (RpcContext.getContext().isConsumerSide()) {
      RpcContext.getContext().setAttachment(CommonConstant.TX_TRANSACTION_GROUP,
          TxTransactionLocal.getInstance().getTxGroupId());
    }
    return invoker.invoke(invocation);
  }
}
org.dromara.raincat.core.concurrent.threadlocalTxTransactionLocalgetTxGroupId

Popular methods of TxTransactionLocal

  • getInstance
  • removeTxGroupId
  • setTxGroupId

Popular in Java

  • Start an intent from android
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • addToBackStack (FragmentTransaction)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Path (java.nio.file)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now