org.springframework.osgi.service.importer.event
Class OsgiServiceDependencyWaitEndedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent
org.springframework.osgi.service.importer.event.OsgiServiceDependencyWaitEndedEvent
- All Implemented Interfaces:
- Serializable
public class OsgiServiceDependencyWaitEndedEvent
- extends OsgiServiceDependencyEvent
Importer event indicating that the wait for a given dependency has ended
(successfully), namely the dependency was found before the time allocated for
it elapsed.
- Author:
- Costin Leau
- See Also:
- Serialized Form
Method Summary |
long |
getElapsedTime()
Returns the time spent (in milliseconds) waiting, until service was found
(and the dependency considered satisfied). |
OsgiServiceDependencyWaitEndedEvent
public OsgiServiceDependencyWaitEndedEvent(Object source,
OsgiServiceDependency dependency,
long elapsedTime)
- Constructs a new
OsgiServiceDependencyWaitEndedEvent
instance.
- Parameters:
source
- event source (usually the service importer)dependency
- dependency descriptionelapsedTime
- time to wait
getElapsedTime
public long getElapsedTime()
- Returns the time spent (in milliseconds) waiting, until service was found
(and the dependency considered satisfied).
- Returns:
- Returns the time (in milliseconds) spent waiting for the OSGi
service to appear
Copyright © 2006-2011 Spring Framework. All Rights Reserved.