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()Creates and returns a copy of this object.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class<?> getClass()Returns the runtime class of thisObject.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.final voidwait()Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
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
-