Package com.tnsai.coordination.pool
Interface PoolListener
- All Known Implementing Classes:
PredictiveActivator
public interface PoolListener
Listener for pool lifecycle events. All methods are no-op by default.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonActivated(com.tnsai.agents.Agent agent) Called when an agent is checked out (activated).default voidonDestroyed(com.tnsai.agents.Agent agent) Called when an agent is destroyed (evicted or pool closed).default voidCalled when a checkout fails because the pool is exhausted.default voidonReturned(com.tnsai.agents.Agent agent) Called when an agent is returned (checked in) to the pool.
-
Method Details
-
onActivated
default void onActivated(com.tnsai.agents.Agent agent) Called when an agent is checked out (activated). -
onReturned
default void onReturned(com.tnsai.agents.Agent agent) Called when an agent is returned (checked in) to the pool. -
onDestroyed
default void onDestroyed(com.tnsai.agents.Agent agent) Called when an agent is destroyed (evicted or pool closed). -
onExhausted
default void onExhausted()Called when a checkout fails because the pool is exhausted.
-