X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fcommons%2Fprotocol-framework%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fframework%2FProtocolSession.java;fp=opendaylight%2Fcommons%2Fprotocol-framework%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fframework%2FProtocolSession.java;h=6e79d6765dce0ff50ff10c168440469331690b2a;hb=391180fcde6a7a2336182e346e24a1ff9f754062;hp=0000000000000000000000000000000000000000;hpb=1208cf638d47c7908604ab04eaf0e1dbaa67c9cb;p=controller.git diff --git a/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/ProtocolSession.java b/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/ProtocolSession.java new file mode 100644 index 0000000000..6e79d6765d --- /dev/null +++ b/opendaylight/commons/protocol-framework/src/main/java/org/opendaylight/protocol/framework/ProtocolSession.java @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package org.opendaylight.protocol.framework; + +import java.io.Closeable; + +/** + * Protocol Session represents the finite state machine in underlying protocol, including timers and its purpose is to + * create a connection between server and client. Session is automatically started, when TCP connection is created, but + * can be stopped manually. If the session is up, it has to redirect messages to/from user. Handles also malformed + * messages and unknown requests. + * + * This interface should be implemented by a final class representing a protocol specific session. + */ +public interface ProtocolSession extends Closeable { + @Override + void close(); +}