|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.gemstone.gemfire.cache.DiskWriteAttributesFactory
public final class DiskWriteAttributesFactory
Factory for getting DiskWriteAttribute objects
| Constructor Summary | |
|---|---|
DiskWriteAttributesFactory()
Creates a new instance of DiskWriteAttributesFactory ready to create a DiskWriteAttributes with default settings. |
|
DiskWriteAttributesFactory(DiskWriteAttributes dwa)
Creates a new instance of DiskWriteAttributesFactory Factory ready to create a DiskWriteAttributes with the same settings as those
in the specified DiskWriteAttributes. |
|
| Method Summary | |
|---|---|
DiskWriteAttributes |
create()
Creates a DiskWriteAttributes with the current settings. |
void |
setBytesThreshold(long bytesThreshold)
Sets the number of unwritten bytes of data that can be enqueued before being written to disk.It has significance only in case of asynchronous mode of writing. |
void |
setMaxOplogSize(int maxOplogSize)
Sets the maximum Oplog size in megabytes after which switching of Oplog will happen |
void |
setMaxOplogSizeInBytes(long maxOplogSize)
Sets the maximum Oplog size in bytes after which switching of Oplog will happen |
void |
setRollOplogs(boolean rollingEnabled)
Sets whether or not the rolling of Oplog is enabled . |
void |
setSynchronous(boolean isSynchronous)
Sets whether or not the writing to the disk is synchronous. |
void |
setTimeInterval(long timeInterval)
Sets the number of milliseconds that can elapse before unwritten data is written to disk. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DiskWriteAttributesFactory()
DiskWriteAttributes with default settings. The default
DiskWriteAttributes thus created will have following
behaviour.
public DiskWriteAttributesFactory(DiskWriteAttributes dwa)
DiskWriteAttributes with the same settings as those
in the specified DiskWriteAttributes.
dwa - the DiskWriteAttributes used to initialize this
DiskWriteAttributesFactory| Method Detail |
|---|
public void setSynchronous(boolean isSynchronous)
isSynchronous - boolean if true indicates synchronous writespublic void setRollOplogs(boolean rollingEnabled)
rollingEnabled - public void setMaxOplogSizeInBytes(long maxOplogSize)
maxOplogSize -
IllegalArgumentException - if the value specified is a negative numberpublic void setMaxOplogSize(int maxOplogSize)
maxOplogSize -
IllegalArgumentException - if the value specified is a negative numberpublic void setTimeInterval(long timeInterval)
timeInterval - Time interval in milliseconds
IllegalArgumentException - if the value specified is a negative numberpublic void setBytesThreshold(long bytesThreshold)
bytesThreshold -
IllegalArgumentException - if the value specified is a negative numberpublic DiskWriteAttributes create()
DiskWriteAttributes with the current settings.
DiskWriteAttributes
IllegalStateException - if the current settings has rolling enabled with maximum Oplog
Size specified as infinite ( represented by 0 ) *
|
GemFire 5.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||