Record Class HttpResponse.PushPromiseHandler.PushId.Http3PushId
java.lang.Object
java.lang.Record
java.net.http.HttpResponse.PushPromiseHandler.PushId.Http3PushId
- Record Components:
pushId- the pushId as a longconnectionLabel- theHttpResponse.connectionLabel()of the HTTP/3 connection
- All Implemented Interfaces:
HttpResponse.PushPromiseHandler.PushId
- Enclosing interface:
HttpResponse.PushPromiseHandler.PushId
public static record HttpResponse.PushPromiseHandler.PushId.Http3PushId(long pushId, String connectionLabel)
extends Record
implements HttpResponse.PushPromiseHandler.PushId
Represents an HTTP/3 PushId.
- API Note:
- The
connectionLabelshould be considered opaque, and ensures that two long pushId emitted by different connections correspond to distinct instances ofPushId. ThepushIdcorresponds to the unique push ID assigned by the server that identifies a given server push on that connection, as defined by RFC 9114, section 4.6 - Since:
- 26
- External Specifications
-
Nested Class Summary
Nested classes/interfaces declared in interface HttpResponse.PushPromiseHandler.PushId
HttpResponse.PushPromiseHandler.PushId.Http3PushIdModifier and TypeInterfaceDescriptionstatic final recordRepresents an HTTP/3 PushId. -
Constructor Summary
ConstructorsConstructorDescriptionHttp3PushId(long pushId, String connectionLabel) Creates an instance of aHttp3PushIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionLabelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longpushId()Returns the value of thepushIdrecord component.final StringtoString()Returns a string representation of this record class.Methods declared in class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
Http3PushId
Creates an instance of aHttp3PushIdrecord class.- Parameters:
pushId- the value for thepushIdrecord componentconnectionLabel- the value for theconnectionLabelrecord 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. -
pushId
-
connectionLabel
Returns the value of theconnectionLabelrecord component.- Returns:
- the value of the
connectionLabelrecord component
-