GetHandoffEndpoint returns the new endpoint for handoff (lock-free).
()
| 402 | |
| 403 | // GetHandoffEndpoint returns the new endpoint for handoff (lock-free). |
| 404 | func (cn *Conn) GetHandoffEndpoint() string { |
| 405 | if v := cn.handoffStateAtomic.Load(); v != nil { |
| 406 | return v.(*HandoffState).Endpoint |
| 407 | } |
| 408 | return "" |
| 409 | } |
| 410 | |
| 411 | // GetMovingSeqID returns the sequence ID from the MOVING notification (lock-free). |
| 412 | func (cn *Conn) GetMovingSeqID() int64 { |