public static enum PeerDownPacket.Type extends Enum<PeerDownPacket.Type>
Enum Constant and Description |
---|
LOCAL_BGP_NOTIFICATION |
LOCAL_NO_NOTIFICATION |
REMOTE_BGP_NOTIFICATION |
REMOTE_NO_NOTIFICATION |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
abstract Reason |
parse(io.netty.buffer.ByteBuf buffer,
PeerFlags flags,
Optional<PeerInfo> peerInfo) |
static PeerDownPacket.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PeerDownPacket.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PeerDownPacket.Type LOCAL_BGP_NOTIFICATION
public static final PeerDownPacket.Type LOCAL_NO_NOTIFICATION
public static final PeerDownPacket.Type REMOTE_BGP_NOTIFICATION
public static final PeerDownPacket.Type REMOTE_NO_NOTIFICATION
public static final PeerDownPacket.Type UNKNOWN
public static PeerDownPacket.Type[] values()
for (PeerDownPacket.Type c : PeerDownPacket.Type.values()) System.out.println(c);
public static PeerDownPacket.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract Reason parse(io.netty.buffer.ByteBuf buffer, PeerFlags flags, Optional<PeerInfo> peerInfo) throws InvalidPacketException
InvalidPacketException
Copyright © 2020. All rights reserved.