Class AckRemoteApplicationEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.cloud.bus.event.RemoteApplicationEvent
org.springframework.cloud.bus.event.AckRemoteApplicationEvent
- All Implemented Interfaces:
Serializable
An event that signals an ack of a specific
RemoteApplicationEvent. These events
can be monitored by any applications that want to audit the responses to bus events.
They behave like normal remote application events, in the sense that if the destination
service matches the local service ID the application fires the event in its context.- Author:
- Dave Syer
- See Also:
-
Field Summary
Fields inherited from class org.springframework.cloud.bus.event.RemoteApplicationEvent
DEFAULT_DESTINATION_FACTORYFields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAckRemoteApplicationEvent(Object source, String originService, Destination destination, String ackDestinationService, String ackId, Class<? extends RemoteApplicationEvent> type) -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAckId()Class<? extends RemoteApplicationEvent>getEvent()inthashCode()voidsetEventName(String eventName) Used by Jackson to set the remote class name of the event implementation.Methods inherited from class org.springframework.cloud.bus.event.RemoteApplicationEvent
getDestinationService, getId, getOriginService, toStringMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource
-
Constructor Details
-
AckRemoteApplicationEvent
public AckRemoteApplicationEvent(Object source, String originService, Destination destination, String ackDestinationService, String ackId, Class<? extends RemoteApplicationEvent> type)
-
-
Method Details
-
getAckId
-
getAckDestinationService
-
getEvent
-
setEventName
Used by Jackson to set the remote class name of the event implementation. If the implementing class is unknown to this app, set the event toUnknownRemoteApplicationEvent.- Parameters:
eventName- the fq class name of the event implementation, not null
-
hashCode
public int hashCode()- Overrides:
hashCodein classRemoteApplicationEvent
-
equals
- Overrides:
equalsin classRemoteApplicationEvent
-