Docs Menu

Interface ConnectionListener

On this page

  • io.realm.mongodb.sync
  • Method Summary
  • Method Detail
  • onChange

Interface used when reporting changes that happened to the connection used by the session.Multiple sessions might re-use the same connection. In that case, any connection change will be reported to all sessions.

If a disconnect happened due to an error, that error will be reported to the sessions SyncSession.ErrorHandler .

Tip
See also:
Modifier and Type
Method and Description
public void

A change in the connection to the server was detected.

public void onChange (
)

A change in the connection to the server was detected.

Parameters

  • oldState - the state the connection transitioned from.
  • newState - the state the connection transitioned to.
←  io.realm.mongodb.syncEnum ConnectionState →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.