Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hp.hpl.jena.shared
Interface Lock

All Known Subinterfaces:
  InfModel, Model, ModelLock, OntModel

All Known Implementing Classes:
  LockMRSW, LockMutex, LockNone, com.hp.hpl.jena.rdf.model.impl.ModelCom, ModelRDB, MonitorModel

    public interface Lock

Field Summary
`static boolean` | `READ` Descriptive name for lock requests - read lock
`static boolean` | `WRITE` Descriptive name for lock requests - write lock

Method Summary
`void` | `enterCriticalSection(boolean readLockRequested)` Enter a critical section.
`void` | `leaveCriticalSection()` Leave a critical section.

Field Detail

### READ

    static final boolean READ

  Descriptive name for lock requests - read lock

  See Also:
    Constant Field Values

### WRITE

    static final boolean WRITE

  Descriptive name for lock requests - write lock

  See Also:
    Constant Field Values

Method Detail

### enterCriticalSection

    void enterCriticalSection(boolean readLockRequested)

  Enter a critical section. The application must call leaveCriticialSection.

  Parameters:
    `readLockRequested` - true implies a read lock,false implies write lock.
  See Also:
    `leaveCriticalSection()`

### leaveCriticalSection

    void leaveCriticalSection()

  Leave a critical section. Releases the lock form the matching enterCriticalSection

  See Also:
    `enterCriticalSection(boolean)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Hewlett-Packard Development Company, LP