Package io.grpc.netty
Class ProtocolNegotiationEvent
- java.lang.Object
-
- io.grpc.netty.ProtocolNegotiationEvent
-
@CheckReturnValue @Internal public final class ProtocolNegotiationEvent extends java.lang.Object
Represents a completion of a protocol negotiation stage.
-
-
Field Summary
Fields Modifier and Type Field Description private Attributesattributes(package private) static ProtocolNegotiationEventDEFAULTprivate InternalChannelz.Securitysecurity
-
Constructor Summary
Constructors Modifier Constructor Description privateProtocolNegotiationEvent(Attributes attributes, InternalChannelz.Security security)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)(package private) AttributesgetAttributes()(package private) InternalChannelz.SecuritygetSecurity()inthashCode()This method is not efficient and is intended for testing.java.lang.StringtoString()(package private) ProtocolNegotiationEventwithAttributes(Attributes attributes)(package private) ProtocolNegotiationEventwithSecurity(InternalChannelz.Security security)
-
-
-
Field Detail
-
DEFAULT
static final ProtocolNegotiationEvent DEFAULT
-
attributes
private final Attributes attributes
-
security
@Nullable private final InternalChannelz.Security security
-
-
Constructor Detail
-
ProtocolNegotiationEvent
private ProtocolNegotiationEvent(Attributes attributes, @Nullable InternalChannelz.Security security)
-
-
Method Detail
-
getSecurity
@Nullable InternalChannelz.Security getSecurity()
-
getAttributes
Attributes getAttributes()
-
withAttributes
ProtocolNegotiationEvent withAttributes(Attributes attributes)
-
withSecurity
ProtocolNegotiationEvent withSecurity(@Nullable InternalChannelz.Security security)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
This method is not efficient and is intended for testing.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-