One field can become private, others get @VisibleForTesting
Change-Id: I2d5214620a83953dae080d4a1f67e1e6470944e9
Signed-off-by: Robert Varga <rovarga@cisco.com>
/**
* System.nanoTime value about when was sent the last message Protected to be updated also in tests.
*/
+ @VisibleForTesting
protected volatile long lastMessageSentAt;
/**
*/
private long lastMessageReceivedAt;
- /**
- * Protected for testing.
- */
- protected int maxUnknownMessages;
-
+ @VisibleForTesting
protected final Queue<Long> unknownMessagesTimes = new LinkedList<Long>();
private final PCEPSessionListener listener;
private int receivedMsgCount = 0;
+ private int maxUnknownMessages;
+
// True if the listener should not be notified about events
private boolean closed = false;