Class InvalidateSpecsStateForPlanRequestEvent
- java.lang.Object
-
- com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent<CrossNodesCommunication.InvalidateSpecsStateForPlanRequest>
-
- com.atlassian.bamboo.cluster.event.plan.InvalidateSpecsStateForPlanRequestEvent
-
- All Implemented Interfaces:
CrossNodesEvent
,CrossNodesInvalidationEvent
,Serializable
public final class InvalidateSpecsStateForPlanRequestEvent extends AbstractCrossNodesEvent<CrossNodesCommunication.InvalidateSpecsStateForPlanRequest> implements CrossNodesInvalidationEvent, Serializable
Data holder for plan specs state invalidation event.- Since:
- 9.5
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InvalidateSpecsStateForPlanRequestEvent.Builder
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
CrossNodesEvent.Type
-
-
Constructor Summary
Constructors Constructor Description InvalidateSpecsStateForPlanRequestEvent()
InvalidateSpecsStateForPlanRequestEvent(@NotNull List<PlanKey> planKeysToInvalidate, @NotNull List<PlanKey> keysOfPlansDetachedFromRss)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvalidateSpecsStateForPlanRequestEvent.Builder
builder()
boolean
equals(Object o)
Indicates whether some other object is "equal to" this one.@NotNull CrossNodesEvent.Type
getType()
Returns the type of the event.int
hashCode()
Returns a hash code value for the object.boolean
isEmpty()
Returns whether the event is empty.void
send(@NotNull CrossNodesEventsServiceGrpc.CrossNodesEventsServiceStub stub, @NotNull MetadataInfo metadataInfo, @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver)
CrossNodesCommunication.InvalidateSpecsStateForPlanRequest
toGrpcRequestMessage(@NotNull MetadataInfo metadataInfo)
@NotNull String
toString()
Returns a string representation of the object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
isNotEmpty
-
-
-
-
Method Detail
-
getType
@NotNull public @NotNull CrossNodesEvent.Type getType()
Description copied from interface:CrossNodesEvent
Returns the type of the event.- Specified by:
getType
in interfaceCrossNodesEvent
- Returns:
- the type of the event
-
isEmpty
public boolean isEmpty()
Description copied from interface:CrossNodesEvent
Returns whether the event is empty. May be needed to avoid sending empty events.- Specified by:
isEmpty
in interfaceCrossNodesEvent
- Returns:
- true if the event is empty, false otherwise.
-
toString
@NotNull public @NotNull String toString()
Description copied from interface:CrossNodesEvent
Returns a string representation of the object.- Specified by:
toString
in interfaceCrossNodesEvent
- Overrides:
toString
in classObject
- Returns:
- a string representation of the object
-
equals
public boolean equals(Object o)
Description copied from interface:CrossNodesEvent
Indicates whether some other object is "equal to" this one.- Specified by:
equals
in interfaceCrossNodesEvent
- Overrides:
equals
in classObject
- Parameters:
o
- the reference object with which to compare- Returns:
true
if this object is the same as the obj argument;false
otherwise
-
hashCode
public int hashCode()
Description copied from interface:CrossNodesEvent
Returns a hash code value for the object.- Specified by:
hashCode
in interfaceCrossNodesEvent
- Overrides:
hashCode
in classObject
- Returns:
- a hash code value for this object
-
toGrpcRequestMessage
@NotNull public CrossNodesCommunication.InvalidateSpecsStateForPlanRequest toGrpcRequestMessage(@NotNull @NotNull MetadataInfo metadataInfo)
- Specified by:
toGrpcRequestMessage
in classAbstractCrossNodesEvent<CrossNodesCommunication.InvalidateSpecsStateForPlanRequest>
-
send
public void send(@NotNull CrossNodesEventsServiceGrpc.CrossNodesEventsServiceStub stub, @NotNull @NotNull MetadataInfo metadataInfo, @NotNull @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver)
- Specified by:
send
in classAbstractCrossNodesEvent<CrossNodesCommunication.InvalidateSpecsStateForPlanRequest>
-
builder
public static InvalidateSpecsStateForPlanRequestEvent.Builder builder()
-
-