01: package com.tc.async.api;
02:
03: /*
04: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
05: */
06: /**
07: * @author steve Used to filter events. Note, these are evaluted in the context of the sender so they should be fast.
08: */
09: 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: }
|