Package com.couchbase.lite
Class PeerInfo
java.lang.Object
com.couchbase.lite.PeerInfo
Information about a peer during multipeer replication.
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
ConstructorsConstructorDescriptionPeerInfo(PeerInfo.PeerId peerId, X509Certificate certificate, boolean isOnline, com.couchbase.lite.internal.core.C4ReplicatorStatus status, Set<PeerInfo.PeerId> neighbors)  - 
Method Summary
Modifier and TypeMethodDescriptionThe peer’s TLS certificate.The set of visible neighbors.The peer ID.The current status of the replicator.booleanisOnline()Whether the peer is online. 
- 
Field Details
- 
PEER_ID_LENGTH
public static final int PEER_ID_LENGTH- See Also:
 
 
 - 
 - 
Constructor Details
- 
PeerInfo
@Internal("For internal use only: not part of the public API.") public PeerInfo(@NonNull PeerInfo.PeerId peerId, @Nullable X509Certificate certificate, boolean isOnline, @NonNull com.couchbase.lite.internal.core.C4ReplicatorStatus status, @NonNull Set<PeerInfo.PeerId> neighbors)  
 - 
 - 
Method Details
- 
getPeerId
The peer ID.- Returns:
 - the peer ID
 
 - 
getCertificate
The peer’s TLS certificate. This will only be available after the peer has been authenticated during the connection process established for replication.- Returns:
 - the peer's TLS certificate, or null if not available
 
 - 
isOnline
public boolean isOnline()Whether the peer is online.- Returns:
 - true if the peer is online, false otherwise
 
 - 
getReplicatorStatus
The current status of the replicator.- Returns:
 - the replicator status
 
 - 
getNeighbors
The set of visible neighbors.- Returns:
 - the set of visible neighbors
 
 
 -