EventRequest
, Mirror
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
,
EventRequestManager
SUSPEND_ALL, SUSPEND_EVENT_THREAD, SUSPEND_NONE
Modifier and Type | Method | 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, suspendPolicy
toString, virtualMachine
void 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. Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1999, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b153-2