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 classSegmentNotification.SegmentNotificationBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SegmentNotification.SegmentNotificationBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)intgetNumOfReaders()intgetNumOfSegments()inthashCode()voidsetNumOfReaders(int numOfReaders)voidsetNumOfSegments(int numOfSegments)java.lang.StringtoString()
-
-
-
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:
toStringin classNotification
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classNotification
-
canEqual
protected boolean canEqual(java.lang.Object other)
- Overrides:
canEqualin classNotification
-
hashCode
public int hashCode()
- Overrides:
hashCodein classNotification
-
-