Class TransactionContext

  • All Implemented Interfaces:
    Recyclable

    public class TransactionContext
    extends AbstractContext
    Context

    Any arbitrary contextual information regarding the event, captured by the agent, optionally provided by the user

    • Constructor Detail

      • TransactionContext

        public TransactionContext()
    • Method Detail

      • getCustom

        public java.lang.Object getCustom​(java.lang.String key)
      • getResponse

        public Response getResponse()
      • addCustom

        public void addCustom​(java.lang.String key,
                              java.lang.String value)
      • addCustom

        public void addCustom​(java.lang.String key,
                              java.lang.Number value)
      • addCustom

        public void addCustom​(java.lang.String key,
                              boolean value)
      • hasCustom

        public boolean hasCustom()
      • getCustomIterator

        public java.util.Iterator<? extends java.util.Map.Entry<java.lang.String,​?>> getCustomIterator()
      • getRequest

        public Request getRequest()
        Request

        If a log record was generated as a result of a http request, the http interface can be used to collect this information.

      • getUser

        public User getUser()
        User

        Describes the authenticated User for a request.

      • onTransactionEnd

        public void onTransactionEnd()