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 Attributes
attributes
(package private) static ProtocolNegotiationEvent
DEFAULT
private InternalChannelz.Security
security
-
Constructor Summary
Constructors Modifier Constructor Description private
ProtocolNegotiationEvent(Attributes attributes, InternalChannelz.Security security)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
(package private) Attributes
getAttributes()
(package private) InternalChannelz.Security
getSecurity()
int
hashCode()
This method is not efficient and is intended for testing.java.lang.String
toString()
(package private) ProtocolNegotiationEvent
withAttributes(Attributes attributes)
(package private) ProtocolNegotiationEvent
withSecurity(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:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
This method is not efficient and is intended for testing.- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
-