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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the class object representing the gRPC stub used for communication with the Atlassian Cache service.booleanisEmpty()Checks if the cacheName associated with this event is empty or blank.abstract @NotNull StringtoString()Returns a string representation of the object.Methods inherited from class com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent
send, toGrpcRequestMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:CrossNodesEventReturns a string representation of the object.- Specified by:
toStringin interfaceCrossNodesEvent- Overrides:
toStringin 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:
isEmptyin 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:
getStubClassin classAbstractCrossNodesEvent<R,AtlassianCacheCrossNodesEventsServiceGrpc.AtlassianCacheCrossNodesEventsServiceStub> - Returns:
- The class object of AtlassianCacheCrossNodesEventsServiceStub.
-