blob: ce17b73f58c2fd62415c2422dd7382c64c8774ce [file] [log] [blame]
/*
* Copyright (c) 2011, 2012, 2015 Eike Stepper (Loehne, Germany) 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
*
* Contributors:
* Caspar De Groot - initial API and implementation
*/
package org.eclipse.emf.cdo.common.lock;
/**
* A client-side representation of a view owning locks.
* <p>
*
* @author Caspar De Groot
* @since 4.1
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface CDOLockOwner
{
/**
* @return the ID identifying the session that owns the view
*/
public int getSessionID();
/**
* @return the ID identifying the view within the session
*/
public int getViewID();
public String getDurableLockingID();
/**
* Returns <code>true</code> if this view is <b>purely</b> durable,
* i.e., currently not open and active on the client-side, <code>false</code> otherwise.
*/
public boolean isDurableView();
}