KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > async > api > AddPredicate


1 package com.tc.async.api;
2
3 /*
4  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
5  */

6 /**
7  * @author steve Used to filter events. Note, these are evaluted in the context of the sender so they should be fast.
8  */

9 public interface AddPredicate {
10
11   /**
12    * Take a look at the context in the thread of the sender and see if you want to take it or ignore it or do something
13    * else to it.
14    *
15    * @param context
16    * @return
17    */

18   public boolean accept(EventContext context);
19 }
Popular Tags