Record Class SessionStart
java.lang.Object
java.lang.Record
org.jpos.log.evt.SessionStart
- All Implemented Interfaces:
AuditLogEvent
public record SessionStart(int connections, int permits, String info)
extends Record
implements AuditLogEvent
-
Constructor Summary
ConstructorsConstructorDescriptionSessionStart(int connections, int permits, String info) Creates an instance of aSessionStartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconnectionsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.info()Returns the value of theinforecord component.intpermits()Returns the value of thepermitsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionStart
Creates an instance of aSessionStartrecord class.- Parameters:
connections- the value for theconnectionsrecord componentpermits- the value for thepermitsrecord componentinfo- the value for theinforecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
connections
Returns the value of theconnectionsrecord component.- Returns:
- the value of the
connectionsrecord component
-
permits
Returns the value of thepermitsrecord component.- Returns:
- the value of the
permitsrecord component
-
info
-