public class DslSessionParams extends Object
DslSessionParams
is a wrapper class for all parameters that function
as inputs to DslStoreSuppliers.sessionStore(DslSessionParams)
.Constructor and Description |
---|
DslSessionParams(String name,
Duration retentionPeriod,
EmitStrategy emitStrategy) |
Modifier and Type | Method and Description |
---|---|
EmitStrategy |
emitStrategy() |
boolean |
equals(Object o) |
int |
hashCode() |
String |
name() |
Duration |
retentionPeriod() |
String |
toString() |
public DslSessionParams(String name, Duration retentionPeriod, EmitStrategy emitStrategy)
name
- name of the store (cannot be null
)retentionPeriod
- length of time to retain data in the store (cannot be negative)
(note that the retention period must be at least as long enough to
contain the inactivity gap of the session and the entire grace period.)emitStrategy
- defines how to emit resultspublic String name()
public Duration retentionPeriod()
public EmitStrategy emitStrategy()