com.jrockit.mc.rjmx.subscription
Class PolicyFactory

java.lang.Object
  extended by com.jrockit.mc.rjmx.subscription.PolicyFactory

public final class PolicyFactory
extends java.lang.Object

Factory for commonly used subscription update policies.

Author:
Marcus Hirt

Method Summary
static IUpdatePolicy createDefaultUpdatePolicy()
          Policy that updates the IAttributeSubscription with the default update interval.
static IUpdatePolicy createOneShotPolicy()
          This update policy will schedule the first update ASAP, and the next one at the end of time (Long.MAX_VALUE).
static IUpdatePolicy createSimpleUpdatePolicy(int updateTime)
          Update policy that updates the IAttributeSubscription every updateTime millisecond.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createOneShotPolicy

public static IUpdatePolicy createOneShotPolicy()
This update policy will schedule the first update ASAP, and the next one at the end of time (Long.MAX_VALUE).


createSimpleUpdatePolicy

public static IUpdatePolicy createSimpleUpdatePolicy(int updateTime)
Update policy that updates the IAttributeSubscription every updateTime millisecond.

Parameters:
updateTime - the period between updates in milliseconds.

createDefaultUpdatePolicy

public static IUpdatePolicy createDefaultUpdatePolicy()
Policy that updates the IAttributeSubscription with the default update interval.



Copyright © 1999, 2011, Oracle and/or its affiliates. All rights reserved.