Class JdbcStatementCacheSizeEvent

All Implemented Interfaces:
Event, Serializable

public class JdbcStatementCacheSizeEvent extends JdbcDriverEvent
The JdbcStatementCacheSizeEvent indicates that the current application is not using JDBC statement caching.
Since:
2.4.0
Author:
Vlad Mihalcea
See Also:
  • Field Details

    • DEFAULT_STATEMENT_CACHE_SIZE

      public static final int DEFAULT_STATEMENT_CACHE_SIZE
      See Also:
  • Constructor Details

    • JdbcStatementCacheSizeEvent

      public JdbcStatementCacheSizeEvent(DatabaseInfo databaseInfo, boolean statementCacheEnabled, int statementCacheSize)
      Instantiate a JdbcStatementCacheSizeEvent using the provided JDBC Statement cache settings.
      Parameters:
      databaseInfo - the underlying database info
      statementCacheEnabled - if JDBC statement caching is enabled
      statementCacheSize - the current JDBC statement cache size
  • Method Details

    • isStatementCacheEnabled

      public boolean isStatementCacheEnabled()
      Check if JDBC statement caching is enabled.
      Returns:
      if JDBC statement caching is enabled
    • getStatementCacheSize

      public int getStatementCacheSize()
      Get the current JDBC statement cache size.
      Returns:
      the current JDBC statement cache size
    • getPriority

      public Event.Priority getPriority()
      Get the Event.Priority of this Event
      Returns:
      the Event.Priority of this Event
    • getDescription

      public String getDescription()
      Get the String description of this Event
      Returns:
      the String description of this Event