com.preemptive.instrumentation
Class Expiry

java.lang.Object
  extended by com.preemptive.instrumentation.Expiry

public final class Expiry
extends Object

Implements the default behavior for Shelf Life expiration checking.


Method Summary
static void expiryCheck(Token token)
          Deprecated. replaced by expiryCheck(Token, Object)
static void expiryCheck(Token token, Object context)
          Performs an expiration check.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

expiryCheck

@Deprecated
public static void expiryCheck(Token token)
Deprecated. replaced by expiryCheck(Token, Object)

Performs an expiration check. If the token is expired or in its warning period the default actions are taken.

Parameters:
token - the token that defines the application's expiration time. If null then application is considered expired.

expiryCheck

public static void expiryCheck(Token token,
                               Object context)
Performs an expiration check. If the token is expired or in its warning period the default actions are taken.

Parameters:
token - the token that defines the application's expiration time. If null then application is considered expired.
context - a context object that may or may not be used by a particular implementation. May be null.


Copyright © 2013 PreEmptive Solutions, LLC. All Rights Reserved.