Package org.apache.maven.wagon.events
Class WagonEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.apache.maven.wagon.events.WagonEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SessionEvent,TransferEvent
public class WagonEvent extends java.util.EventObjectBase class for all events emitted byWagonobjects.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected longtimestampThe time when event occurred
-
Constructor Summary
Constructors Constructor Description WagonEvent(Wagon source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetTimestamp()Returns the timestamp which indicated the time when this event has occurredWagongetWagon()Returns The Wagon object on which the WagonEvent initially occurredvoidsetTimestamp(long timestamp)Sets the timestamp which indicated the time when this event has occurred
-
-
-
Constructor Detail
-
WagonEvent
public WagonEvent(Wagon source)
- Parameters:
source- The Wagon object on which the WagonEvent initially occurred
-
-
Method Detail
-
getWagon
public Wagon 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.
-
-