java.lang.Cloneable
public class DatabaseStreamConfig
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field | Description |
---|---|---|
static DatabaseStreamConfig |
DEFAULT |
Default configuration used if null is passed to methods that create a
database stream.
|
Constructor | Description |
---|---|
DatabaseStreamConfig() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
getReadOnly() |
Return true if the database stream is read only.
|
boolean |
getSyncPerWrite() |
Return if the database stream is configured to sync the external file
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 external file on each write.
|
public static final DatabaseStreamConfig DEFAULT
public void setReadOnly(boolean readOnly)
readOnly
- If true, configure the database stream to read only.public boolean getReadOnly()
public void setSyncPerWrite(boolean syncPerWrite)
syncPerWrite
- If true, configure the database stream to sync the external file on
each write.public boolean getSyncPerWrite()
Copyright (c) 1996, 2020 Oracle and/or its affiliates. All rights reserved.