- from RFC4724 comes need to have option to close
session without sending NOTIFICATION in certain
situations
JIRA: BGPCEP-807
Change-Id: Ib560c3a15c1f2227829c151697a6fde98e3a7eed
Signed-off-by: Matej Perina <matej.perina@pantheon.tech>
return this.channel.newFailedFuture(new NonWritableChannelException());
}
- private synchronized void closeWithoutMessage() {
+ @Override
+ public synchronized void closeWithoutMessage() {
if (this.state == State.IDLE) {
return;
}
return Collections.emptyList();
}
+ @Override
+ public void closeWithoutMessage() {
+ close();
+ }
}
}
@Nonnull
List<BgpTableType> getAdvertisedGracefulRestartTableTypes();
+ /**
+ * Close peer session without sending Notification message.
+ */
+ void closeWithoutMessage();
}