Class LlmTokenCountCallbackHolder
- java.lang.Object
-
- com.newrelic.agent.bridge.aimonitoring.LlmTokenCountCallbackHolder
-
public class LlmTokenCountCallbackHolder extends java.lang.ObjectA thread-safe holder for an instance ofLlmTokenCountCallback. This class provides methods for setting and retrieving the callback instance.
-
-
Constructor Summary
Constructors Constructor Description LlmTokenCountCallbackHolder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.newrelic.api.agent.LlmTokenCountCallbackgetLlmTokenCountCallback()Retrieves the storedLlmTokenCountCallbackinstance.static voidsetLlmTokenCountCallback(com.newrelic.api.agent.LlmTokenCountCallback newLlmTokenCountCallback)Sets theLlmTokenCountCallbackinstance to be stored.
-
-
-
Method Detail
-
setLlmTokenCountCallback
public static void setLlmTokenCountCallback(com.newrelic.api.agent.LlmTokenCountCallback newLlmTokenCountCallback)
Sets theLlmTokenCountCallbackinstance to be stored.- Parameters:
newLlmTokenCountCallback- the callback instance
-
getLlmTokenCountCallback
public static com.newrelic.api.agent.LlmTokenCountCallback getLlmTokenCountCallback()
Retrieves the storedLlmTokenCountCallbackinstance.- Returns:
- stored callback instance
-
-