Class AutoScaleEvent

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte DOWN  
      static byte UP  
    • 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)  
    • 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: ControllerEvent
        Method to get routing key for the event.
        Specified by:
        getKey in interface ControllerEvent
        Returns:
        return the routing key that should be used.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object