@Exported public interface ClassUnloadRequest extends EventRequest
event set containing an
ClassUnloadEvent will
be placed on the EventQueue.
The collection of existing ClassUnloadRequests is
managed by the EventRequestManager
Refer to the Java Virtual Machine Specification for more information on class unloading.
ClassUnloadEvent,
EventQueue,
EventRequestManagerSUSPEND_ALL, SUSPEND_EVENT_THREAD, SUSPEND_NONE| Modifier and Type | Method and Description |
|---|---|
void |
addClassExclusionFilter(String classPattern)
Restricts the events generated by this request to the
unloading of reference types whose name does not match
a restricted regular expression.
|
void |
addClassFilter(String classPattern)
Restricts the events generated by this request to the
unloading of reference types whose name matches a restricted
regular expression.
|
addCountFilter, disable, enable, getProperty, isEnabled, putProperty, setEnabled, setSuspendPolicy, suspendPolicytoString, virtualMachinevoid addClassFilter(String classPattern)
classPattern - the pattern String to filter for.InvalidRequestStateException - if this request is currently
enabled or has been deleted.
Filters may be added only to disabled requests.void addClassExclusionFilter(String classPattern)
classPattern - the pattern String to filter against.InvalidRequestStateException - if this request is currently
enabled or has been deleted.
Filters may be added only to disabled requests.
Copyright © 1999, 2018, Oracle and/or its affiliates. All rights reserved.