Package com.tangosol.net.topic
Interface Subscriber.Channel
- All Known Implementing Classes:
- Subscriber.Channel.EmptyChannel
- Enclosing interface:
- Subscriber<V>
public static interface Subscriber.Channel
A representation of a topic channel within subscriber.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classA default empty channel implementation.
- 
Method SummaryModifier and TypeMethodDescriptionlongReturn the number of completed commit requests.Returns the first position polled by this subscriber.longReturns the timestamp when the first element was polled by this subscriber.getHead()Returns the current head position for the channel.intgetId()Returns the identifier for this channel.Returns the last position committed by this subscriber.Returns the last position polled by this subscriber.longReturns the timestamp when the last element was polled by this subscriber.Returns the last position received by this subscriber.intReturns a numeric representation of if the channel is owned by this subscriber where1represents true and0represents false.longgetPolls()Returns the number of elements polled by this subscriber.longReturn the number of completed receive requests.longReturn the number of completed receive requests.doubleReturn the fifteen-minute rate of completed receive requests.doubleReturn the five-minute rate of completed receive requests.doubleReturn the mean rate of completed receive requests.doubleReturn the one-minute rate of completed receive requests.booleanisEmpty()Returnstrueif the channel is empty.booleanisOwned()Returnstrueif the channel is owned by this subscriber.
- 
Method Details- 
getIdint getId()Returns the identifier for this channel.- Returns:
- the identifier for this channel
 
- 
getHeadPosition getHead()Returns the current head position for the channel.- Returns:
- the current head position for the channel
 
- 
getLastCommitPosition getLastCommit()Returns the last position committed by this subscriber.- Returns:
- the last position committed by this subscriber
 
- 
getCommitCountlong getCommitCount()Return the number of completed commit requests.- Returns:
- the number of completed commit requests
 
- 
getLastReceivedPosition getLastReceived()Returns the last position received by this subscriber.- Returns:
- the last position received by this subscriber
 
- 
getReceiveCountlong getReceiveCount()Return the number of completed receive requests.- Returns:
- the number of completed receive requests
 
- 
getPollslong getPolls()Returns the number of elements polled by this subscriber.- Returns:
- the number of elements polled by this subscriber
 
- 
getFirstPolledPosition getFirstPolled()Returns the first position polled by this subscriber.- Returns:
- the first position polled by this subscriber
 
- 
getFirstPolledTimestamplong getFirstPolledTimestamp()Returns the timestamp when the first element was polled by this subscriber.- Returns:
- the timestamp when the first element was polled by this subscriber
 
- 
getLastPolledPosition getLastPolled()Returns the last position polled by this subscriber.- Returns:
- the last position polled by this subscriber
 
- 
getLastPolledTimestamplong getLastPolledTimestamp()Returns the timestamp when the last element was polled by this subscriber.- Returns:
- the timestamp when the last element was polled by this subscriber
 
- 
isEmptyboolean isEmpty()Returnstrueif the channel is empty.- Returns:
- trueif the channel is empty
 
- 
isOwnedboolean isOwned()Returnstrueif the channel is owned by this subscriber.- Returns:
- trueif the channel is owned by this subscriber
 
- 
getOwnedCodeint getOwnedCode()Returns a numeric representation of if the channel is owned by this subscriber where1represents true and0represents false.- Returns:
- a numeric representation of if the channel is owned by this subscriber
 where 1represents true and0represents false
 
- 
getReceivedlong getReceived()Return the number of completed receive requests.- Returns:
- the number of completed receive requests
 
- 
getReceivedMeanRatedouble getReceivedMeanRate()Return the mean rate of completed receive requests.- Returns:
- the mean rate of completed receive requests
 
- 
getReceivedOneMinuteRatedouble getReceivedOneMinuteRate()Return the one-minute rate of completed receive requests.- Returns:
- the one-minute rate of completed receive requests
 
- 
getReceivedFiveMinuteRatedouble getReceivedFiveMinuteRate()Return the five-minute rate of completed receive requests.- Returns:
- the five-minute rate of completed receive requests
 
- 
getReceivedFifteenMinuteRatedouble getReceivedFifteenMinuteRate()Return the fifteen-minute rate of completed receive requests.- Returns:
- the fifteen-minute rate of completed receive requests
 
 
-