Class AutoScaleEvent
- java.lang.Object
-
- io.pravega.shared.controller.event.AutoScaleEvent
-
- All Implemented Interfaces:
ControllerEvent
public class AutoScaleEvent extends java.lang.Object implements ControllerEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAutoScaleEvent.Serializer
-
Constructor Summary
Constructors Constructor Description AutoScaleEvent(java.lang.String scope, java.lang.String stream, long segmentId, byte direction, long timestamp, int numOfSplits, boolean silent, long requestId)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static io.pravega.shared.controller.event.AutoScaleEvent.AutoScaleEventBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)bytegetDirection()java.lang.StringgetKey()Method to get routing key for the event.intgetNumOfSplits()longgetRequestId()java.lang.StringgetScope()longgetSegmentId()java.lang.StringgetStream()longgetTimestamp()inthashCode()booleanisSilent()java.util.concurrent.CompletableFuture<java.lang.Void>process(RequestProcessor processor)java.lang.StringtoString()
-
-
-
Field Detail
-
UP
public static final byte UP
- See Also:
- Constant Field Values
-
DOWN
public static final byte DOWN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AutoScaleEvent
@ConstructorProperties({"scope","stream","segmentId","direction","timestamp","numOfSplits","silent","requestId"}) public AutoScaleEvent(java.lang.String scope, java.lang.String stream, long segmentId, byte direction, long timestamp, int numOfSplits, boolean silent, long requestId)
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Description copied from interface:ControllerEventMethod to get routing key for the event.- Specified by:
getKeyin interfaceControllerEvent- Returns:
- return the routing key that should be used.
-
process
public java.util.concurrent.CompletableFuture<java.lang.Void> process(RequestProcessor processor)
- Specified by:
processin interfaceControllerEvent
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static io.pravega.shared.controller.event.AutoScaleEvent.AutoScaleEventBuilder builder()
-
getScope
public java.lang.String getScope()
-
getStream
public java.lang.String getStream()
-
getSegmentId
public long getSegmentId()
-
getDirection
public byte getDirection()
-
getTimestamp
public long getTimestamp()
-
getNumOfSplits
public int getNumOfSplits()
-
isSilent
public boolean isSilent()
-
getRequestId
public long getRequestId()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-