Class ServiceCallEvent<SERVICE extends Service>

java.lang.Object
io.stargate.sdk.audit.ServiceCallEvent<SERVICE>
Type Parameters:
SERVICE - the type of the service in use
Direct Known Subclasses:
ServiceHttpCallEvent

public class ServiceCallEvent<SERVICE extends Service> extends Object
Event triggered for Api Invocation with input/output tracing.
  • Field Details

    • service

      protected transient SERVICE extends Service service
      Related service.
    • timestamp

      protected long timestamp
      epoch time of the event generation.
    • requestId

      protected String requestId
      Unique identifier for a request.
    • responseTime

      protected long responseTime
      response time.
    • responseTimestamp

      protected long responseTimestamp
      response triggered time.
    • responseElapsedTime

      protected long responseElapsedTime
      response elapsed time.
    • totalTries

      protected int totalTries
      retries.
    • errorClass

      protected String errorClass
      Error Classname.
    • errorMessage

      protected String errorMessage
      Error message.
    • lastException

      protected Exception lastException
      Exceptions.
  • Constructor Details

    • ServiceCallEvent

      public ServiceCallEvent()
      Default constructor.
  • Method Details

    • getResponseElapsedTime

      public long getResponseElapsedTime()
      Getter accessor for attribute 'responseElapsedTime'.
      Returns:
      current value of 'responseElapsedTime'
    • setResponseElapsedTime

      public void setResponseElapsedTime(long responseElapsedTime)
      Setter accessor for attribute 'responseElapsedTime'.
      Parameters:
      responseElapsedTime - new value for 'responseElapsedTime '
    • getTotalTries

      public int getTotalTries()
      Getter accessor for attribute 'totalTries'.
      Returns:
      current value of 'totalTries'
    • setTotalTries

      public void setTotalTries(int totalTries)
      Setter accessor for attribute 'totalTries'.
      Parameters:
      totalTries - new value for 'totalTries '
    • getLastException

      public Exception getLastException()
      Getter accessor for attribute 'lastException'.
      Returns:
      current value of 'lastException'
    • setLastException

      public void setLastException(Exception lastException)
      Setter accessor for attribute 'lastException'.
      Parameters:
      lastException - new value for 'lastException '
    • getTimestamp

      public long getTimestamp()
      Getter accessor for attribute 'timestamp'.
      Returns:
      current value of 'timestamp'
    • setTimestamp

      public void setTimestamp(long timestamp)
      Setter accessor for attribute 'timestamp'.
      Parameters:
      timestamp - new value for 'timestamp '
    • getResponseTime

      public long getResponseTime()
      Getter accessor for attribute 'responseTime'.
      Returns:
      current value of 'responseTime'
    • getErrorClass

      public String getErrorClass()
      Getter accessor for attribute 'errorClass'.
      Returns:
      current value of 'errorClass'
    • setErrorClass

      public void setErrorClass(String errorClass)
      Setter accessor for attribute 'errorClass'.
      Parameters:
      errorClass - new value for 'errorClass '
    • getErrorMessage

      public String getErrorMessage()
      Getter accessor for attribute 'errorMessage'.
      Returns:
      current value of 'errorMessage'
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Setter accessor for attribute 'errorMessage'.
      Parameters:
      errorMessage - new value for 'errorMessage '
    • getResponseTimestamp

      public long getResponseTimestamp()
      Getter accessor for attribute 'responseTimestamp'.
      Returns:
      current value of 'responseTimestamp'
    • setResponseTimestamp

      public void setResponseTimestamp(long responseTimestamp)
      Setter accessor for attribute 'responseTimestamp'.
      Parameters:
      responseTimestamp - new value for 'responseTimestamp '
    • getRequestId

      public String getRequestId()
      Gets requestId
      Returns:
      value of requestId
    • setRequestId

      public void setRequestId(String requestId)
      Set value for requestId
      Parameters:
      requestId - new value for requestId
    • setResponseTime

      public void setResponseTime(long responseTime)
      Set value for responseTime
      Parameters:
      responseTime - new value for responseTime
    • getService

      public SERVICE getService()
      Gets service
      Returns:
      value of service
    • setService

      public void setService(SERVICE service)
      Set value for service
      Parameters:
      service - new value for service