public class MessageBufferConfiguration extends Object
| Constructor and Description |
|---|
MessageBufferConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
long |
bufferAgeLimit()
The maximum age of the oldest object in the buffer in milliseconds
|
MessageBufferConfiguration |
bufferAgeLimit(long bufferAgeLimit)
Configures the maximum age of the first message in the buffer.
|
int |
bufferCountLimit()
The maximum number of messages in the buffer.
|
MessageBufferConfiguration |
bufferCountLimit(int bufferCountLimit)
Configures the maximal number of messages in the buffer.
|
long |
bufferSizeLimit()
The maximum size of the buffer content.
|
MessageBufferConfiguration |
bufferSizeLimit(long bufferSizeLimit)
Configures the maximum size of the message buffer in bytes.
|
int |
gcmSendRetries()
The number of retries to send the GCM message in case the Google Server fails.
|
MessageBufferConfiguration |
gcmSendRetries(int gcmSendRetries)
The number of retries to send a message over GCM to the mobile device.
|
String |
toString() |
public int bufferCountLimit()
public MessageBufferConfiguration bufferCountLimit(int bufferCountLimit)
bufferCountLimit - the maximal message countpublic long bufferSizeLimit()
public MessageBufferConfiguration bufferSizeLimit(long bufferSizeLimit)
bufferSizeLimit - the maximal buffer size in bytespublic long bufferAgeLimit()
public MessageBufferConfiguration bufferAgeLimit(long bufferAgeLimit)
bufferAgeLimit - the maximum age of the content in the buffer in millisecondspublic int gcmSendRetries()
public MessageBufferConfiguration gcmSendRetries(int gcmSendRetries)
gcmSendRetries - the maximum number of attempts to try to reach the mobile deviceCopyright © 2015. All rights reserved.