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

## com.sleepycat.db
Class DatabaseStreamConfig

    java.lang.Object
      com.sleepycat.db.DatabaseStreamConfig

All Implemented Interfaces:
  Cloneable

    public class DatabaseStreamConfig

extends Object
implements Cloneable

Specify the attributes of database stream. An instance created with the default constructor is initialized with the system's default settings.

Field Summary
`static DatabaseStreamConfig` | `DEFAULT` Default configuration used if null is passed to methods that create a database stream.

Constructor Summary
`DatabaseStreamConfig()`

Method Summary
`boolean` | `getReadOnly()` Return true if the database stream is read only.
`boolean` | `getSyncPerWrite()` Return if the database stream is configured to sync the blob on each write.
`void` | `setReadOnly(boolean readOnly)` Configure the database stream as read only.
`void` | `setSyncPerWrite(boolean syncPerWrite)` Configure the database stream to sync the blob on each write.

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

Field Detail

### DEFAULT

    public static final DatabaseStreamConfig DEFAULT

  Default configuration used if null is passed to methods that create a database stream.

Constructor Detail

### DatabaseStreamConfig

    public DatabaseStreamConfig()

Method Detail

### setReadOnly

    public void setReadOnly(boolean readOnly)

  Configure the database stream as read only.

  Parameters:
    `readOnly` - If true, configure the database stream to read only.

### getReadOnly

    public boolean getReadOnly()

  Return true if the database stream is read only.

  Returns:
    true if the database stream is configured to read only.

### setSyncPerWrite

    public void setSyncPerWrite(boolean syncPerWrite)

  Configure the database stream to sync the blob on each write.

  Parameters:
    `syncPerWrite` - If true, configure the database stream to sync the blob on each write.

### getSyncPerWrite

    public boolean getSyncPerWrite()

  Return if the database stream is configured to sync the blob on each write.

  Returns:
    true if the database stream is configured to sync the blob on each write, and false otherwise.

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

Copyright (c) 1996, 2014 Oracle and/or its affiliates. All rights reserved.