Community articleisHardGCFlag method
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars


This method returns the state of the HardGC flag. For more information, see the setHardGCFlage method.
The isHardGCFlag method is included in the API for completeness and backwards compatibility.


public static boolean isHardGCFlag ( );


There are no parameters for this method.


True if the API is set to request system garbage collection. False if the API is not requesting system garbage collection and the JVM is managing memory. The isHardGCFlag method does not throw an exception if an error occurs.


The Streaming API is not affected by the state of the HardGCFlag.
Parent topic:
DTK class