Merge "Refactored validator implementation"
[packetcable.git] / packetcable-driver / src / main / java / org / umu / cops / COPSDataProcess.java
1 /*
2 #################################################################################
3 ##                                                                             ##
4 ## Copyright (c) 2014, 2015 Cable Television Laboratories, Inc and others.     ##
5 ## All rights reserved.                                                        ##
6 ##                                                                             ##
7 ## This program and the accompanying materials are made available under the    ##
8 ## terms of the Eclipse Public License v1.0 which accompanies this             ##
9 ## distribution and is available at http://www.eclipse.org/legal/epl-v10.html  ##
10 ##                                                                             ##
11 #################################################################################
12 */
13
14 package org.umu.cops;
15
16 import org.umu.cops.stack.COPSError;
17
18 /**
19  * Defines the standard methods for implementors for processing COPS data.
20  */
21 public interface COPSDataProcess {
22
23     /**
24      * Notifies a keep-alive timeout
25      * @param man   The associated request state manager
26      */
27     void notifyNoKAliveReceived(COPSStateMan man);
28
29     /**
30      * Notifies that the connection has been closed
31      * @param man  The associated request state manager
32      * @param error Reason
33      */
34     void notifyClosedConnection(COPSStateMan man, COPSError error);
35
36     /**
37      * Notifies that a request state has been closed
38      * @param man   The associated request state manager
39      */
40     void closeRequestState(COPSStateMan man);
41
42 }