Record Class WsHttpSessionBindingListener
java.lang.Object
java.lang.Record
org.apache.tomcat.websocket.server.WsHttpSessionBindingListener
- Record Components:
key- The key that identifies the HTTP session
- All Implemented Interfaces:
HttpSessionBindingListener, Serializable, EventListener
public record WsHttpSessionBindingListener(String key)
extends Record
implements HttpSessionBindingListener, Serializable
Listener used to track when an HTTP session expires and notifies the WebSocket container so any associated WebSocket
session can be closed.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aWsHttpSessionBindingListenerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.final StringtoString()Returns a string representation of this record class.voidNotifies the object that it is being unbound from a session and identifies the session.Methods inherited from interface HttpSessionBindingListener
valueBound
-
Constructor Details
-
WsHttpSessionBindingListener
-
-
Method Details
-
valueUnbound
Description copied from interface:jakarta.servlet.http.HttpSessionBindingListenerNotifies the object that it is being unbound from a session and identifies the session. The default implementation is a NO-OP.- Specified by:
valueUnboundin interfaceHttpSessionBindingListener- Parameters:
event- the event that identifies the session- See Also:
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
key
-