Class AtlassianCachePutEvent
java.lang.Object
com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent<R,AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub>
com.atlassian.bamboo.cluster.event.atlassiancache.AtlassianCacheCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest>
com.atlassian.bamboo.cluster.event.atlassiancache.AtlassianCachePutEvent
- All Implemented Interfaces:
CrossNodesEvent
,Serializable
public final class AtlassianCachePutEvent
extends AtlassianCacheCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
CrossNodesEvent.Type
-
Field Summary
Fields inherited from class com.atlassian.bamboo.cluster.event.atlassiancache.AtlassianCacheCrossNodesEvent
cacheName
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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()
Checks if the cacheName associated with this event is empty or blank.static AtlassianCachePutEvent
void
send
(@NotNull AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub stub, @NotNull MetadataInfo metadataInfo, @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver) Sends a gRPC request using the event specific data, provided stub and metadata information, and observes the response.toGrpcRequestMessage
(@NotNull MetadataInfo metadataInfo) Converts event specific data and provided metadata information into the corresponding gRPC request message.@NotNull String
toString()
Returns a string representation of the object.Methods inherited from class com.atlassian.bamboo.cluster.event.atlassiancache.AtlassianCacheCrossNodesEvent
getStubClass
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 Details
-
of
-
isEmpty
public boolean isEmpty()Description copied from class:AtlassianCacheCrossNodesEvent
Checks if the cacheName associated with this event is empty or blank. Event is not valid without the associated cache name.- Specified by:
isEmpty
in interfaceCrossNodesEvent
- Overrides:
isEmpty
in classAtlassianCacheCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest>
- Returns:
- true if the cacheName is empty or blank, false otherwise.
-
getType
Description copied from interface:CrossNodesEvent
Returns the type of the event.- Returns:
- the type of the event
-
toGrpcRequestMessage
@NotNull public CrossNodesCommunication.AtlassianCachePutRequest toGrpcRequestMessage(@NotNull @NotNull MetadataInfo metadataInfo) Description copied from class:AbstractCrossNodesEvent
Converts event specific data and provided metadata information into the corresponding gRPC request message.- Specified by:
toGrpcRequestMessage
in classAbstractCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest,
AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub> - Parameters:
metadataInfo
- Metadata information to be used.- Returns:
- The gRPC request message
-
send
public void send(@NotNull AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub stub, @NotNull @NotNull MetadataInfo metadataInfo, @NotNull @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver) Description copied from class:AbstractCrossNodesEvent
Sends a gRPC request using the event specific data, provided stub and metadata information, and observes the response.- Specified by:
send
in classAbstractCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest,
AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub> - Parameters:
stub
- The gRPC stub instance used to send the request.metadataInfo
- Metadata information associated with the request.responseObserver
- Observer for handling responses from the server.
-
toString
Description copied from interface:CrossNodesEvent
Returns a string representation of the object.- Specified by:
toString
in interfaceCrossNodesEvent
- Specified by:
toString
in classAtlassianCacheCrossNodesEvent<CrossNodesCommunication.AtlassianCachePutRequest>
- Returns:
- a string representation of the object
-
equals
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
-