|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ektorp.impl.changes.ContinuousChangesFeed
public final class ContinuousChangesFeed
| Constructor Summary | |
|---|---|
ContinuousChangesFeed(java.lang.String dbName,
java.io.InputStream changesStream)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Will close this feed and interrupt any threads waiting on next() |
boolean |
isAlive()
|
DocumentChange |
next()
Retrieves and removes the head of this changes feed, waiting if necessary until an element becomes available. |
DocumentChange |
next(long timeout,
java.util.concurrent.TimeUnit unit)
Retrieves and removes the head of this changes feed, waiting up to the specified wait time if necessary for an element to become available. |
int |
queueSize()
|
void |
run()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContinuousChangesFeed(java.lang.String dbName,
java.io.InputStream changesStream)
| Method Detail |
|---|
public DocumentChange next()
throws java.lang.InterruptedException
ChangesFeed
next in interface ChangesFeedjava.lang.InterruptedException - when this changes feed is closed or otherwise is interrupted
public DocumentChange next(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
ChangesFeed
next in interface ChangesFeedjava.lang.InterruptedException - when this changes feed is closed or otherwise is interruptedpublic void cancel()
ChangesFeed
cancel in interface ChangesFeedpublic boolean isAlive()
isAlive in interface ChangesFeedpublic int queueSize()
queueSize in interface ChangesFeedpublic void run()
run in interface java.lang.Runnable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||