1 package org.apache.commons.jcs.engine.logging.behavior;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 import java.io.Serializable;
23
24 /** Defines the common fields required by a cache event. */
25 public interface ICacheEvent<K>
26 extends Serializable
27 {
28 /**
29 * @param source the source to set
30 */
31 void setSource( String source );
32
33 /**
34 * @return the source
35 */
36 String getSource();
37
38 /**
39 * @param region the region to set
40 */
41 void setRegion( String region );
42
43 /**
44 * @return the region
45 */
46 String getRegion();
47
48 /**
49 * @param eventName the eventName to set
50 */
51 void setEventName( String eventName );
52
53 /**
54 * @return the eventName
55 */
56 String getEventName();
57
58 /**
59 * @param optionalDetails the optionalDetails to set
60 */
61 void setOptionalDetails( String optionalDetails );
62
63 /**
64 * @return the optionalDetails
65 */
66 String getOptionalDetails();
67
68 /**
69 * @param key the key to set
70 */
71 void setKey( K key );
72
73 /**
74 * @return the key
75 */
76 K getKey();
77 }