BEA Systems, Inc.

com.beasys.commerce.axiom.reasoning.rules.service
Class RulesetExpirer

java.lang.Object
  |
  +--com.beasys.commerce.axiom.reasoning.rules.service.RulesetExpirer

public class RulesetExpirer
extends java.lang.Object

Implements a ruleset expirer


Field Summary
protected  long creationTime
          The expirer creation time
protected  long expirationAge
          The expiration age
protected  int expirationPolicy
          The expiration policy
static int EXPIRE_RULE_SET_AT_AGE
          The "at age" rule set expiration policy
static int EXPIRE_RULE_SET_NEVER
          The "never" rule set expiration policy
static int EXPIRE_RULE_SET_WHEN_MODIFIED
          The "when modified" rule set expiration policy
 
Constructor Summary
RulesetExpirer()
          Constructor
 
Method Summary
 int getExpirationPolicy()
          Gets the expiration policy
 boolean getExpired()
          Gets expired property
 void setCreationTime()
          Sets the creation time
 void setExpirationAge(long expirationAge)
          Sets the expiration age
 void setExpirationPolicy(int expirationPolicy)
          Sets the expiration policy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPIRE_RULE_SET_AT_AGE

public static final int EXPIRE_RULE_SET_AT_AGE
The "at age" rule set expiration policy

EXPIRE_RULE_SET_NEVER

public static final int EXPIRE_RULE_SET_NEVER
The "never" rule set expiration policy

EXPIRE_RULE_SET_WHEN_MODIFIED

public static final int EXPIRE_RULE_SET_WHEN_MODIFIED
The "when modified" rule set expiration policy

creationTime

protected long creationTime
The expirer creation time

expirationAge

protected long expirationAge
The expiration age

expirationPolicy

protected int expirationPolicy
The expiration policy
Constructor Detail

RulesetExpirer

public RulesetExpirer()
Constructor
Method Detail

getExpirationPolicy

public int getExpirationPolicy()
Gets the expiration policy
Returns:
The code indicating the expiration policy

getExpired

public boolean getExpired()
Gets expired property
Returns:
True if associated ruleset is expired, false otherwise

setCreationTime

public void setCreationTime()
Sets the creation time

setExpirationAge

public void setExpirationAge(long expirationAge)
                      throws java.lang.IllegalArgumentException
Sets the expiration age
Parameters:
expirationAge - The expiration age
Throws:
java.lang.IllegalArgumentException - Thrown if expirationAge is negative

setExpirationPolicy

public void setExpirationPolicy(int expirationPolicy)
                         throws java.lang.IllegalArgumentException
Sets the expiration policy
Parameters:
expirationPolicy - The expiration policy
Throws:
java.lang.IllegalArgumentException - Thrown if expirationPolicy is not an allowed value

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved