Class InvalidateUserSessionsEvent
java.lang.Object
com.atlassian.bamboo.cluster.event.AbstractCrossNodesEvent<R,BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub>
com.atlassian.bamboo.cluster.event.bamboo.BambooCrossNodesEvent<CrossNodesCommunication.InvalidateUserSessionsRequest>
com.atlassian.bamboo.cluster.event.bamboo.session.InvalidateUserSessionsEvent
- All Implemented Interfaces:
CrossNodesEvent,CrossNodesInvalidationEvent,Serializable
public class InvalidateUserSessionsEvent
extends BambooCrossNodesEvent<CrossNodesCommunication.InvalidateUserSessionsRequest>
implements CrossNodesInvalidationEvent, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
CrossNodesEvent.Type -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates 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 InvalidateUserSessionsEventvoidsend(@NotNull BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub 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 StringtoString()Returns a string representation of the object.Methods inherited from class com.atlassian.bamboo.cluster.event.bamboo.BambooCrossNodesEvent
getStubClassMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.cluster.event.CrossNodesEvent
isNotEmpty
-
Method Details
-
of
-
getType
Description copied from interface:CrossNodesEventReturns the type of the event.- Specified by:
getTypein interfaceCrossNodesEvent- Returns:
- the type of the event
-
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- Returns:
- true if the event is empty, false otherwise.
-
toGrpcRequestMessage
@NotNull public CrossNodesCommunication.InvalidateUserSessionsRequest toGrpcRequestMessage(@NotNull @NotNull MetadataInfo metadataInfo) Description copied from class:AbstractCrossNodesEventConverts event specific data and provided metadata information into the corresponding gRPC request message.- Specified by:
toGrpcRequestMessagein classAbstractCrossNodesEvent<CrossNodesCommunication.InvalidateUserSessionsRequest,BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub> - Parameters:
metadataInfo- Metadata information to be used.- Returns:
- The gRPC request message
-
send
public void send(@NotNull BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub stub, @NotNull @NotNull MetadataInfo metadataInfo, @NotNull @NotNull io.grpc.stub.StreamObserver<CrossNodesCommunication.CommonResponse> responseObserver) Description copied from class:AbstractCrossNodesEventSends a gRPC request using the event specific data, provided stub and metadata information, and observes the response.- Specified by:
sendin classAbstractCrossNodesEvent<CrossNodesCommunication.InvalidateUserSessionsRequest,BambooCrossNodesEventsServiceGrpc.BambooCrossNodesEventsServiceStub> - 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:CrossNodesEventReturns a string representation of the object.- Specified by:
toStringin interfaceCrossNodesEvent- Overrides:
toStringin classObject- Returns:
- a string representation of the object
-
equals
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
-