Package org.atmosphere.inject
Record Class CallbackScope.Binding
java.lang.Object
java.lang.Record
org.atmosphere.inject.CallbackScope.Binding
- Record Components:
resource- the resourceevent- the event of the callback, ornullfor the resource's ownsince- when the callback started, on the clock that orders injections
- Enclosing class:
CallbackScope
public static record CallbackScope.Binding(AtmosphereResource resource, AtmosphereResourceEvent event, long since)
extends Record
The resource of the callback running on a thread, the event that callback
runs for, and when the callback started.
-
Constructor Summary
ConstructorsConstructorDescriptionBinding(AtmosphereResource resource, AtmosphereResourceEvent event, long since) Creates an instance of aBindingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.resource()Returns the value of theresourcerecord component.longsince()Returns the value of thesincerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
since
public long since()Returns the value of thesincerecord component.- Returns:
- the value of the
sincerecord component
-