Class AtlassianCacheCrossNodesEvent<R>
java.lang.Object
com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent<R,AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub>
com.atlassian.bamboo.cluster.event.atlassiancache.AtlassianCacheCrossNodesEvent<R>
- Type Parameters:
R
- The type of request message associated with the event.
- All Implemented Interfaces:
CrossNodesEvent
,Serializable
- Direct Known Subclasses:
AtlassianCacheBulkEvent
,AtlassianCachedReferenceResetEvent
,AtlassianCachePutEvent
,AtlassianCachePutIfAbsentEvent
,AtlassianCacheRemoveAllEvent
,AtlassianCacheRemoveByKeyAndValueEvent
,AtlassianCacheRemoveByKeyEvent
,AtlassianCacheReplaceEvent
public abstract class AtlassianCacheCrossNodesEvent<R>
extends AbstractCrossNodesEvent<R,AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub>
implements Serializable
Abstract base class for events related to Atlassian cache operations in a multi-node environment sent via gRPC.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
CrossNodesEvent.Type
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the class object representing the gRPC stub used for communication with the Atlassian Cache service.boolean
isEmpty()
Checks if the cacheName associated with this event is empty or blank.abstract @NotNull String
toString()
Returns a string representation of the object.Methods inherited from class com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent
send, toGrpcRequestMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
equals, getType, hashCode, isNotEmpty
-
Field Details
-
cacheName
-
-
Constructor Details
-
AtlassianCacheCrossNodesEvent
-
-
Method Details
-
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
-
isEmpty
public boolean isEmpty()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
- Returns:
- true if the cacheName is empty or blank, false otherwise.
-
getStubClass
@NotNull public @NotNull Class<AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub> getStubClass()Retrieves the class object representing the gRPC stub used for communication with the Atlassian Cache service.- Specified by:
getStubClass
in classAbstractCrossNodesEvent<R,
AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub> - Returns:
- The class object of AtlassianCacheCrossNodesEventsServiceStub.
-