APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.internal.net.http.quic

public abstract sealed Class TerminationCause

extends Object
permits TransportError, InternalError, AppLayerClose, SilentTermination
Class Inheritance
Known Direct Subclasses
jdk.internal.net.http.quic.TerminationCause.TransportError, jdk.internal.net.http.quic.TerminationCause.InternalError, jdk.internal.net.http.quic.TerminationCause.AppLayerClose, jdk.internal.net.http.quic.TerminationCause.SilentTermination
Imports
java.io.IOException, java.util.Objects, jdk.internal.net.quic.QuicTLSEngine, .QuicTransportErrors, .QuicTransportException

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final long
private String
private final Throwable
private String
private final IOException

Constructor Summary

AccessConstructor and Description
private
TerminationCause(final long closeCode, final Throwable closeCause)

private
TerminationCause(final long closeCode, final String loggedAs)

Method Summary

Modifier and TypeMethod and Description
public static TerminationCause
appLayerClose(final long closeCode)

public static TerminationCause
appLayerClose(final long closeCode, String loggedAs)

public static TerminationCause
appLayerException(final long closeCode, final Throwable cause)

public static TerminationCause
forException(final Throwable cause)

pack-priv static TerminationCause.SilentTermination
forSilentTermination(final String loggedAs)

public static TerminationCause
public static TerminationCause
forTransportError(long errorCode, String loggedAs, long frameType)

public final IOException
public final long
public final String
public final String
public abstract boolean
public final TerminationCause
loggedAs(final String logMsg)

public final TerminationCause
peerVisibleReason(final String reasonPhrase)

private static IOException
toReportedCause(final Throwable original, final String fallbackExceptionMsg)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

closeCodeback to summary
private final long closeCode
logMsgback to summary
private String logMsg
originalCauseback to summary
private final Throwable originalCause
peerVisibleReasonback to summary
private String peerVisibleReason
reportedCauseback to summary
private final IOException reportedCause

Constructor Detail

TerminationCauseback to summary
private TerminationCause(final long closeCode, final Throwable closeCause)
TerminationCauseback to summary
private TerminationCause(final long closeCode, final String loggedAs)

Method Detail

appLayerCloseback to summary
public static TerminationCause appLayerClose(final long closeCode)
appLayerCloseback to summary
public static TerminationCause appLayerClose(final long closeCode, String loggedAs)
appLayerExceptionback to summary
public static TerminationCause appLayerException(final long closeCode, final Throwable cause)
forExceptionback to summary
public static TerminationCause forException(final Throwable cause)
forSilentTerminationback to summary
pack-priv static TerminationCause.SilentTermination forSilentTermination(final String loggedAs)
forTransportErrorback to summary
public static TerminationCause forTransportError(final QuicTransportErrors err)
forTransportErrorback to summary
public static TerminationCause forTransportError(long errorCode, String loggedAs, long frameType)
getCloseCauseback to summary
public final IOException getCloseCause()
getCloseCodeback to summary
public final long getCloseCode()
getLogMsgback to summary
public final String getLogMsg()
getPeerVisibleReasonback to summary
public final String getPeerVisibleReason()
isAppLayerback to summary
public abstract boolean isAppLayer()
loggedAsback to summary
public final TerminationCause loggedAs(final String logMsg)
peerVisibleReasonback to summary
public final TerminationCause peerVisibleReason(final String reasonPhrase)
toReportedCauseback to summary
private static IOException toReportedCause(final Throwable original, final String fallbackExceptionMsg)
jdk.internal.net.http.quic back to summary

pack-priv final Class TerminationCause.AppLayerClose

extends TerminationCause
Class Inheritance

Constructor Summary

AccessConstructor and Description
private
AppLayerClose(final long closeCode, String loggedAs)

private
AppLayerClose(final long closeCode, final Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from jdk.internal.net.http.quic.TerminationCause:
appLayerCloseappLayerCloseappLayerExceptionforExceptionforSilentTerminationforTransportErrorforTransportErrorgetCloseCausegetCloseCodegetLogMsggetPeerVisibleReasonloggedAspeerVisibleReason

Constructor Detail

AppLayerCloseback to summary
private AppLayerClose(final long closeCode, String loggedAs)
AppLayerCloseback to summary
private AppLayerClose(final long closeCode, final Throwable cause)

Method Detail

isAppLayerback to summary
public boolean isAppLayer()

Implements abstract jdk.internal.net.http.quic.TerminationCause.isAppLayer.

Annotations
@Override
jdk.internal.net.http.quic back to summary

pack-priv final Class TerminationCause.InternalError

extends TerminationCause
Class Inheritance

Constructor Summary

AccessConstructor and Description
private
InternalError(final Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from jdk.internal.net.http.quic.TerminationCause:
appLayerCloseappLayerCloseappLayerExceptionforExceptionforSilentTerminationforTransportErrorforTransportErrorgetCloseCausegetCloseCodegetLogMsggetPeerVisibleReasonloggedAspeerVisibleReason

Constructor Detail

InternalErrorback to summary
private InternalError(final Throwable cause)

Method Detail

isAppLayerback to summary
public boolean isAppLayer()

Implements abstract jdk.internal.net.http.quic.TerminationCause.isAppLayer.

Annotations
@Override
jdk.internal.net.http.quic back to summary

pack-priv final Class TerminationCause.SilentTermination

extends TerminationCause
Class Inheritance

Constructor Summary

AccessConstructor and Description
private
SilentTermination(final String loggedAs)

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from jdk.internal.net.http.quic.TerminationCause:
appLayerCloseappLayerCloseappLayerExceptionforExceptionforSilentTerminationforTransportErrorforTransportErrorgetCloseCausegetCloseCodegetLogMsggetPeerVisibleReasonloggedAspeerVisibleReason

Constructor Detail

SilentTerminationback to summary
private SilentTermination(final String loggedAs)

Method Detail

isAppLayerback to summary
public boolean isAppLayer()

Implements abstract jdk.internal.net.http.quic.TerminationCause.isAppLayer.

Annotations
@Override
jdk.internal.net.http.quic back to summary

pack-priv final Class TerminationCause.TransportError

extends TerminationCause
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv final long
pack-priv final QuicTLSEngine.KeySpace

Constructor Summary

AccessConstructor and Description
private
private
public
TransportError(long errorCode, String loggedAs, long frameType)

Method Summary

Modifier and TypeMethod and Description
public boolean
Inherited from jdk.internal.net.http.quic.TerminationCause:
appLayerCloseappLayerCloseappLayerExceptionforExceptionforSilentTerminationforTransportErrorforTransportErrorgetCloseCausegetCloseCodegetLogMsggetPeerVisibleReasonloggedAspeerVisibleReason

Field Detail

frameTypeback to summary
pack-priv final long frameType
keySpaceback to summary
pack-priv final QuicTLSEngine.KeySpace keySpace

Constructor Detail

TransportErrorback to summary
private TransportError(final QuicTransportErrors err)
TransportErrorback to summary
private TransportError(final QuicTransportException exception)
TransportErrorback to summary
public TransportError(long errorCode, String loggedAs, long frameType)

Method Detail

isAppLayerback to summary
public boolean isAppLayer()

Implements abstract jdk.internal.net.http.quic.TerminationCause.isAppLayer.

Annotations
@Override