org.glassfish.jersey.server.monitoring
Interface ExtendedMonitoringStatisticsListener

All Superinterfaces:
MonitoringStatisticsListener

@Beta
@ConstrainedTo(value=SERVER)
public interface ExtendedMonitoringStatisticsListener
extends MonitoringStatisticsListener

Extension of the MonitoringStatisticsListener which allows to listen to the event of destroying the application.

Since:
2.5
Author:
Miroslav Fuksa (miroslav.fuksa at oracle.com)

Method Summary
 void onDestroy()
          The method is called when application is destroyed.
 
Methods inherited from interface org.glassfish.jersey.server.monitoring.MonitoringStatisticsListener
onStatistics
 

Method Detail

onDestroy

void onDestroy()
The method is called when application is destroyed. Use this method release resources of the listener. This method will be called in the thread safe way (synchronously and by a single) according to other methods from this or parent interface.



Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.