public class MessageStreamDefinition extends Object
Constructor and Description |
---|
MessageStreamDefinition()
No args constructor for use in serialization
|
MessageStreamDefinition(String name,
Long maxSize,
Long streamSegmentSize,
Long timeToLiveMillis,
StrategyOnFull strategyOnFull,
Persistence persistence,
Boolean flushOnWrite,
ExportDefinition exportDefinition) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
ExportDefinition |
getExportDefinition()
Defines how and where the stream is uploaded.
|
Boolean |
getFlushOnWrite()
This only applies when Persistence is set to File mode.
|
Long |
getMaxSize()
The maximum size in bytes for the entire stream.
|
String |
getName()
The unique name of the stream.
|
Persistence |
getPersistence()
Stream persistence.
|
StrategyOnFull |
getStrategyOnFull()
StrategyOnFull is used in the MessageStreamDefinition when creating a stream.
|
Long |
getStreamSegmentSize()
The size of each segment of the stream.
|
Long |
getTimeToLiveMillis()
Time to live for each message in milliseconds.
|
int |
hashCode() |
void |
setExportDefinition(ExportDefinition exportDefinition)
Defines how and where the stream is uploaded.
|
void |
setFlushOnWrite(Boolean flushOnWrite)
This only applies when Persistence is set to File mode.
|
void |
setMaxSize(Long maxSize)
The maximum size in bytes for the entire stream.
|
void |
setName(String name)
The unique name of the stream.
|
void |
setPersistence(Persistence persistence)
Stream persistence.
|
void |
setStrategyOnFull(StrategyOnFull strategyOnFull)
StrategyOnFull is used in the MessageStreamDefinition when creating a stream.
|
void |
setStreamSegmentSize(Long streamSegmentSize)
The size of each segment of the stream.
|
void |
setTimeToLiveMillis(Long timeToLiveMillis)
Time to live for each message in milliseconds.
|
String |
toString() |
MessageStreamDefinition |
withExportDefinition(ExportDefinition exportDefinition) |
MessageStreamDefinition |
withFlushOnWrite(Boolean flushOnWrite) |
MessageStreamDefinition |
withMaxSize(Long maxSize) |
MessageStreamDefinition |
withName(String name) |
MessageStreamDefinition |
withPersistence(Persistence persistence) |
MessageStreamDefinition |
withStrategyOnFull(StrategyOnFull strategyOnFull) |
MessageStreamDefinition |
withStreamSegmentSize(Long streamSegmentSize) |
MessageStreamDefinition |
withTimeToLiveMillis(Long timeToLiveMillis) |
public MessageStreamDefinition()
public MessageStreamDefinition(String name, Long maxSize, Long streamSegmentSize, Long timeToLiveMillis, StrategyOnFull strategyOnFull, Persistence persistence, Boolean flushOnWrite, ExportDefinition exportDefinition)
flushOnWrite
- exportDefinition
- timeToLiveMillis
- strategyOnFull
- streamSegmentSize
- name
- persistence
- maxSize
- public String getName()
public void setName(String name)
public MessageStreamDefinition withName(String name)
public Long getMaxSize()
public void setMaxSize(Long maxSize)
public MessageStreamDefinition withMaxSize(Long maxSize)
public Long getStreamSegmentSize()
public void setStreamSegmentSize(Long streamSegmentSize)
public MessageStreamDefinition withStreamSegmentSize(Long streamSegmentSize)
public Long getTimeToLiveMillis()
public void setTimeToLiveMillis(Long timeToLiveMillis)
public MessageStreamDefinition withTimeToLiveMillis(Long timeToLiveMillis)
public StrategyOnFull getStrategyOnFull()
public void setStrategyOnFull(StrategyOnFull strategyOnFull)
public MessageStreamDefinition withStrategyOnFull(StrategyOnFull strategyOnFull)
public Persistence getPersistence()
public void setPersistence(Persistence persistence)
public MessageStreamDefinition withPersistence(Persistence persistence)
public Boolean getFlushOnWrite()
public void setFlushOnWrite(Boolean flushOnWrite)
public MessageStreamDefinition withFlushOnWrite(Boolean flushOnWrite)
public ExportDefinition getExportDefinition()
public void setExportDefinition(ExportDefinition exportDefinition)
public MessageStreamDefinition withExportDefinition(ExportDefinition exportDefinition)