Class SegmentNotification
- java.lang.Object
-
- io.pravega.client.stream.notifications.Notification
-
- io.pravega.client.stream.notifications.SegmentNotification
-
public class SegmentNotification extends Notification
Class to represent a segment notification. This contains the current number of segments and the current number of readers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SegmentNotification.SegmentNotificationBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SegmentNotification.SegmentNotificationBuilder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
int
getNumOfReaders()
int
getNumOfSegments()
int
hashCode()
void
setNumOfReaders(int numOfReaders)
void
setNumOfSegments(int numOfSegments)
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static SegmentNotification.SegmentNotificationBuilder builder()
-
getNumOfSegments
public int getNumOfSegments()
-
getNumOfReaders
public int getNumOfReaders()
-
setNumOfSegments
public void setNumOfSegments(int numOfSegments)
-
setNumOfReaders
public void setNumOfReaders(int numOfReaders)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classNotification
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classNotification
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqual
in classNotification
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classNotification
-
-