Class SentApplicationEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.springframework.context.ApplicationEvent
-
- org.springframework.cloud.bus.event.SentApplicationEvent
-
- All Implemented Interfaces:
Serializable
public class SentApplicationEvent extends org.springframework.context.ApplicationEvent
An event signalling that a remote event was sent somewhere in the system. This is not itself aRemoteApplicationEvent
, so it isn't sent over the bus, instead it is generated locally (possibly in response to a remote event). Applications that want to audit remote events can listen for this one and theAckRemoteApplicationEvent
from all the consumers (theid
of this event is theackId
of the corresponding ACK.- Author:
- Dave Syer
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SentApplicationEvent()
SentApplicationEvent(Object source, String originService, String destinationService, String id, Class<? extends RemoteApplicationEvent> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDestinationService()
String
getId()
String
getOriginService()
Class<? extends RemoteApplicationEvent>
getType()
int
hashCode()
void
setType(Class<? extends RemoteApplicationEvent> type)
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Method Detail
-
getType
public Class<? extends RemoteApplicationEvent> getType()
-
setType
public void setType(Class<? extends RemoteApplicationEvent> type)
-
getOriginService
public String getOriginService()
-
getDestinationService
public String getDestinationService()
-
getId
public String getId()
-
-