public class EventPersistenceSettings extends Object
EventPersistenceSettings is an immutable holder for the resolved event
persistence configuration, computed once when the feature is activated.| Modifier and Type | Class and Description |
|---|---|
static class |
EventPersistenceSettings.Builder
|
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_APPLICATION_NAME
The default application name, used when none is configured.
|
static int |
DEFAULT_BATCH_SIZE
The default JDBC batch size used when inserting events.
|
static int |
DEFAULT_MAX_ROLLUP_SIZE
The default cap on the number of pending runtime rollups held in memory.
|
static long |
DEFAULT_ROLLUP_WINDOW_MILLIS
The default runtime rollup window, in milliseconds (5 minutes).
|
static String |
DEFAULT_WEB_APP_HOST
The default host the web app binds to.
|
static String |
EVENT_TABLE
The name of the table holding the configuration and mapping events of each bootstrap.
|
static String |
RUN_TABLE
The name of the table holding one row per optimizer bootstrap.
|
static String |
RUNTIME_EVENT_TABLE
The name of the table holding the aggregated runtime events.
|
| Modifier and Type | Method and Description |
|---|---|
static EventPersistenceSettings.Builder |
builder()
Create a new
EventPersistenceSettings.Builder. |
String |
getApplicationName() |
int |
getBatchSize() |
io.hypersistence.optimizer.util.ConnectionExecutor |
getConnectionExecutor() |
String |
getEventTable()
Get the name of the event table.
|
int |
getMaxRollupSize() |
long |
getRollupWindowMillis() |
String |
getRunTable()
Get the name of the run table.
|
String |
getRuntimeRollupTable()
Get the name of the runtime rollup table.
|
SchemaAction |
getSchemaAction() |
org.hibernate.SessionFactory |
getSessionFactory() |
String |
getWebAppAuthPassword()
The Basic authentication password for the web app, or
null for no auth. |
String |
getWebAppAuthUsername()
The Basic authentication user name for the web app, or
null for no auth. |
String |
getWebAppHost()
The host the web app binds to (default
localhost). |
int |
getWebAppPort()
The port the web app binds to.
|
boolean |
isWebAppEnabled()
Whether the web app should be started inside the host application.
|
public static final long DEFAULT_ROLLUP_WINDOW_MILLIS
public static final int DEFAULT_BATCH_SIZE
public static final int DEFAULT_MAX_ROLLUP_SIZE
public static final String DEFAULT_APPLICATION_NAME
public static final String DEFAULT_WEB_APP_HOST
public static final String RUN_TABLE
public static final String EVENT_TABLE
public static final String RUNTIME_EVENT_TABLE
public org.hibernate.SessionFactory getSessionFactory()
public io.hypersistence.optimizer.util.ConnectionExecutor getConnectionExecutor()
public String getApplicationName()
public int getBatchSize()
public long getRollupWindowMillis()
public int getMaxRollupSize()
public SchemaAction getSchemaAction()
public boolean isWebAppEnabled()
true if the web app is enabledpublic String getWebAppHost()
localhost).public int getWebAppPort()
0 (the default) requests a dynamically
allocated free port, whose resolved value is logged at startup.public String getWebAppAuthUsername()
null for no auth.public String getWebAppAuthPassword()
null for no auth.public String getRunTable()
public String getEventTable()
public String getRuntimeRollupTable()
public static EventPersistenceSettings.Builder builder()
EventPersistenceSettings.Builder.EventPersistenceSettings.BuilderCopyright © 2026. All rights reserved.