Package org.apache.maven.wagon.events
Class WagonEvent
java.lang.Object
java.util.EventObject
org.apache.maven.wagon.events.WagonEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SessionEvent
,TransferEvent
Base class for all events emitted by
Wagon
objects.- Author:
- Michal Maczka
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the timestamp which indicated the time when this event has occurredgetWagon()
Returns The Wagon object on which the WagonEvent initially occurredvoid
setTimestamp
(long timestamp) Sets the timestamp which indicated the time when this event has occurredMethods inherited from class java.util.EventObject
getSource, toString
-
Field Details
-
timestamp
protected long timestampThe time when event occurred
-
-
Constructor Details
-
WagonEvent
- Parameters:
source
- The Wagon object on which the WagonEvent initially occurred
-
-
Method Details
-
getWagon
Returns The Wagon object on which the WagonEvent initially occurred- Returns:
- The Wagon object on which the WagonEvent initially occurred
-
getTimestamp
public long getTimestamp()Returns the timestamp which indicated the time when this event has occurred- Returns:
- Returns the timestamp.
-
setTimestamp
public void setTimestamp(long timestamp) Sets the timestamp which indicated the time when this event has occurred- Parameters:
timestamp
- The timestamp to set.
-