2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.framework;
11 * As in order to work with SSLSelectionKey, a channel needs to implement
12 * this interface. It is used to determine SSL progress and update interestOps
13 * of underlying channel.
15 interface SSLSelectableChannel {
17 * Return the events which the underlying channel should be selected for,
18 * based on what the user would like to see from us.
20 * @param ops user's interest ops
21 * @return Calculated interest ops, including internal needs
23 public int computeInterestOps(final int ops);
26 * Return a freshly-calculated operations which the channel is ready to
29 * @return Calculated ready ops
31 public int computeReadyOps();