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
public class AckRemoteApplicationEvent extends RemoteApplicationEvent
An event that signals an ack of a specificRemoteApplicationEvent
. 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.springframework.cloud.bus.event.RemoteApplicationEvent
DEFAULT_DESTINATION_FACTORY
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AckRemoteApplicationEvent(Object source, String originService, Destination destination, String ackDestinationService, String ackId, Class<? extends RemoteApplicationEvent> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAckDestinationService()
String
getAckId()
Class<? extends RemoteApplicationEvent>
getEvent()
int
hashCode()
void
setEventName(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, toString
-
Methods inherited from class java.util.EventObject
getSource
-
-
-
-
Constructor Detail
-
AckRemoteApplicationEvent
public AckRemoteApplicationEvent(Object source, String originService, Destination destination, String ackDestinationService, String ackId, Class<? extends RemoteApplicationEvent> type)
-
-
Method Detail
-
getAckId
public String getAckId()
-
getAckDestinationService
public String getAckDestinationService()
-
getEvent
public Class<? extends RemoteApplicationEvent> getEvent()
-
setEventName
public void setEventName(String eventName)
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:
hashCode
in classRemoteApplicationEvent
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classRemoteApplicationEvent
-
-