Class AtlassianCachePutEvent
- java.lang.Object
-
- com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent<R>
-
- com.atlassian.bamboo.cluster.event.atlassiancache.AtlassianCacheAbstractEvent<CrossNodesCommunication.AtlassianCachePutRequest>
-
- com.atlassian.bamboo.cluster.event.atlassiancache.AtlassianCachePutEvent
-
- All Implemented Interfaces:
CrossNodesEvent,Serializable
public final class AtlassianCachePutEvent extends AtlassianCacheAbstractEvent<CrossNodesCommunication.AtlassianCachePutRequest>
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
CrossNodesEvent.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Indicates whether some other object is "equal to" this one.@NotNull CrossNodesEvent.TypegetType()Returns the type of the event.inthashCode()Returns a hash code value for the object.booleanisEmpty()Returns whether the event is empty.static AtlassianCachePutEventof(String cacheName, String key, String value)voidsend(@NotNull CrossNodesEventsServiceGrpc.CrossNodesEventsServiceStub stub, @NotNull MetadataInfo metadataInfo, @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver)CrossNodesCommunication.AtlassianCachePutRequesttoGrpcRequestMessage(@NotNull MetadataInfo metadataInfo)@NotNull StringtoString()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
-
of
public static AtlassianCachePutEvent of(String cacheName, String key, String value)
-
isEmpty
public boolean isEmpty()
Description copied from interface:CrossNodesEventReturns whether the event is empty. May be needed to avoid sending empty events.- Specified by:
isEmptyin interfaceCrossNodesEvent- Overrides:
isEmptyin classAtlassianCacheAbstractEvent<CrossNodesCommunication.AtlassianCachePutRequest>- Returns:
- true if the event is empty, false otherwise.
-
getType
@NotNull public @NotNull CrossNodesEvent.Type getType()
Description copied from interface:CrossNodesEventReturns the type of the event.- Returns:
- the type of the event
-
toGrpcRequestMessage
@NotNull public CrossNodesCommunication.AtlassianCachePutRequest toGrpcRequestMessage(@NotNull @NotNull MetadataInfo metadataInfo)
- Specified by:
toGrpcRequestMessagein classAbstractCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest>
-
send
public void send(@NotNull CrossNodesEventsServiceGrpc.CrossNodesEventsServiceStub stub, @NotNull @NotNull MetadataInfo metadataInfo, @NotNull @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver)
- Specified by:
sendin classAbstractCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest>
-
toString
@NotNull public @NotNull String toString()
Description copied from interface:CrossNodesEventReturns a string representation of the object.- Specified by:
toStringin interfaceCrossNodesEvent- Specified by:
toStringin classAtlassianCacheAbstractEvent<CrossNodesCommunication.AtlassianCachePutRequest>- Returns:
- a string representation of the object
-
equals
public boolean equals(Object o)
Description copied from interface:CrossNodesEventIndicates whether some other object is "equal to" this one.- Specified by:
equalsin interfaceCrossNodesEvent- Overrides:
equalsin classObject- Parameters:
o- the reference object with which to compare- Returns:
trueif this object is the same as the obj argument;falseotherwise
-
hashCode
public int hashCode()
Description copied from interface:CrossNodesEventReturns a hash code value for the object.- Specified by:
hashCodein interfaceCrossNodesEvent- Overrides:
hashCodein classObject- Returns:
- a hash code value for this object
-
-