cn.dreampie.cache
类 CacheEvent

java.lang.Object
  继承者 cn.dreampie.cache.CacheEvent

public class CacheEvent
extends Object

Event object. Sent to CacheProvider to let it know of cache purge events.


嵌套类摘要
static class CacheEvent.CacheEventType
           
 
字段摘要
static CacheEvent ALL
           
 
构造方法摘要
CacheEvent(String source)
          Creates a new event type of CacheEvent.CacheEventType.ALL
CacheEvent(String group, String source)
          Creates a new event type of CacheEvent.CacheEventType.GROUP.
 
方法摘要
 String getGroup()
           
 String getSource()
           
 CacheEvent.CacheEventType getType()
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

ALL

public static final CacheEvent ALL
构造方法详细信息

CacheEvent

public CacheEvent(String group,
                  String source)
Creates a new event type of CacheEvent.CacheEventType.GROUP. Usually an application creates an instance of this event to clear a group of caches for a table.

参数:
group - name of group (usually name of table), cannot be null.
source - string representation of source of event, whatever that means for the application. This event will be broadcast to listeners, and they might use this piece of information. Can be null.

CacheEvent

public CacheEvent(String source)
Creates a new event type of CacheEvent.CacheEventType.ALL

参数:
source - string representation of source of event, whatever that means for the application. This event will be broadcast to listeners, and they might use this piece of information. Can be null.
方法详细信息

getSource

public String getSource()

getType

public CacheEvent.CacheEventType getType()

getGroup

public String getGroup()

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2015. All rights reserved.