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

## org.basex.server
Class Semaphore

    java.lang.Object
      org.basex.server.Semaphore

    public final class Semaphore

extends Object

Management of executing read/write processes.

Author:
  Workgroup DBIS, University of Konstanz 2005-10, ISC License, Andreas Weiler

Constructor Summary
`Semaphore()`

Method Summary
`void` | `after(boolean w)` Modifications after executing a process.
`void` | `before(boolean w)` Modifications before executing a process.
`boolean` | `writing(Proc pr, Context ctx)` Checks if the specified process is a writer.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Semaphore

    public Semaphore()

Method Detail

### writing

    public boolean writing(Proc pr,
                           Context ctx)

  Checks if the specified process is a writer.

  Parameters:
    `pr` - process
    `ctx` - database context
  Returns:
    result of check

### before

    public void before(boolean w)

  Modifications before executing a process.

  Parameters:
    `w` - writing flag

### after

    public void after(boolean w)

  Modifications after executing a process.

  Parameters:
    `w` - writing flag

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