|
Sync Android SDK
0.8.6
|
Stream is an ordered message delivery queue. More...
Classes | |
| class | Message |
| Single message in a Stream. More... | |
Public Member Functions | |
| void | setTtl (int ttl, SuccessListener< Void > listener) |
| Update the stream’s time to live. More... | |
Public Attributes | |
| final int | InfiniteDuration = 0 |
| Time to live for a document, specifying no expiry. | |
Stream is an ordered message delivery queue.
You can publish messages and listen for incoming messages.
To obtain an instance of a Stream use SyncClient#openStream.
| void com.twilio.sync.Stream.setTtl | ( | int | ttl, |
| SuccessListener< Void > | listener | ||
| ) |
Update the stream’s time to live.
| ttl | The new time to live for this stream in seconds from now or Stream.InfiniteDuration to indicate no expiry. |
| listener | Async result listener. See SuccessListener. |