* Used to determine if this session equals another * * @param session - The session to compare to
(session: ClientSession)
| 347 | * @param session - The session to compare to |
| 348 | */ |
| 349 | equals(session: ClientSession): boolean { |
| 350 | if (!(session instanceof ClientSession)) { |
| 351 | return false; |
| 352 | } |
| 353 | |
| 354 | if (this.id == null || session.id == null) { |
| 355 | return false; |
| 356 | } |
| 357 | |
| 358 | return ByteUtils.equals(this.id.id.buffer, session.id.id.buffer); |
| 359 | } |
| 360 | |
| 361 | /** |
| 362 | * Increment the transaction number on the internal ServerSession |
no outgoing calls