public class ReplicaInfoEvent extends AbstractEvent<ReplicaInfoEvent.Type,DeviceId>
Modifier and Type | Class and Description |
---|---|
static class |
ReplicaInfoEvent.Type
Types of Replica info event.
|
Constructor and Description |
---|
ReplicaInfoEvent(ReplicaInfoEvent.Type type,
DeviceId device,
ReplicaInfo replicaInfo)
Creates an event of a given type and for the specified device,
and replica info.
|
Modifier and Type | Method and Description |
---|---|
ReplicaInfo |
replicaInfo()
Returns the current replica information for the subject.
|
subject, time, toString, type
public ReplicaInfoEvent(ReplicaInfoEvent.Type type, DeviceId device, ReplicaInfo replicaInfo)
type
- replicainfo event typedevice
- event device subjectreplicaInfo
- replicainfopublic ReplicaInfo replicaInfo()