Package com.tangosol.net.topic
Class Subscriber.Channel.EmptyChannel
java.lang.Object
com.tangosol.net.topic.Subscriber.Channel.EmptyChannel
- All Implemented Interfaces:
- Subscriber.Channel
- Enclosing interface:
- Subscriber.Channel
A default empty channel implementation.
- 
Nested Class SummaryNested classes/interfaces inherited from interface com.tangosol.net.topic.Subscriber.ChannelSubscriber.Channel.EmptyChannel
- 
Constructor SummaryConstructors
- 
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.
- 
Constructor Details- 
EmptyChannelpublic EmptyChannel(int nId) 
 
- 
- 
Method Details- 
getIdpublic int getId()Description copied from interface:Subscriber.ChannelReturns the identifier for this channel.- Specified by:
- getIdin interface- Subscriber.Channel
- Returns:
- the identifier for this channel
 
- 
getHeadDescription copied from interface:Subscriber.ChannelReturns the current head position for the channel.- Specified by:
- getHeadin interface- Subscriber.Channel
- Returns:
- the current head position for the channel
 
- 
getLastCommitDescription copied from interface:Subscriber.ChannelReturns the last position committed by this subscriber.- Specified by:
- getLastCommitin interface- Subscriber.Channel
- Returns:
- the last position committed by this subscriber
 
- 
getCommitCountpublic long getCommitCount()Description copied from interface:Subscriber.ChannelReturn the number of completed commit requests.- Specified by:
- getCommitCountin interface- Subscriber.Channel
- Returns:
- the number of completed commit requests
 
- 
getLastReceivedDescription copied from interface:Subscriber.ChannelReturns the last position received by this subscriber.- Specified by:
- getLastReceivedin interface- Subscriber.Channel
- Returns:
- the last position received by this subscriber
 
- 
getReceiveCountpublic long getReceiveCount()Description copied from interface:Subscriber.ChannelReturn the number of completed receive requests.- Specified by:
- getReceiveCountin interface- Subscriber.Channel
- Returns:
- the number of completed receive requests
 
- 
getPollspublic long getPolls()Description copied from interface:Subscriber.ChannelReturns the number of elements polled by this subscriber.- Specified by:
- getPollsin interface- Subscriber.Channel
- Returns:
- the number of elements polled by this subscriber
 
- 
getFirstPolledDescription copied from interface:Subscriber.ChannelReturns the first position polled by this subscriber.- Specified by:
- getFirstPolledin interface- Subscriber.Channel
- Returns:
- the first position polled by this subscriber
 
- 
getFirstPolledTimestamppublic long getFirstPolledTimestamp()Description copied from interface:Subscriber.ChannelReturns the timestamp when the first element was polled by this subscriber.- Specified by:
- getFirstPolledTimestampin interface- Subscriber.Channel
- Returns:
- the timestamp when the first element was polled by this subscriber
 
- 
getLastPolledDescription copied from interface:Subscriber.ChannelReturns the last position polled by this subscriber.- Specified by:
- getLastPolledin interface- Subscriber.Channel
- Returns:
- the last position polled by this subscriber
 
- 
getLastPolledTimestamppublic long getLastPolledTimestamp()Description copied from interface:Subscriber.ChannelReturns the timestamp when the last element was polled by this subscriber.- Specified by:
- getLastPolledTimestampin interface- Subscriber.Channel
- Returns:
- the timestamp when the last element was polled by this subscriber
 
- 
isEmptypublic boolean isEmpty()Description copied from interface:Subscriber.ChannelReturnstrueif the channel is empty.- Specified by:
- isEmptyin interface- Subscriber.Channel
- Returns:
- trueif the channel is empty
 
- 
isOwnedpublic boolean isOwned()Description copied from interface:Subscriber.ChannelReturnstrueif the channel is owned by this subscriber.- Specified by:
- isOwnedin interface- Subscriber.Channel
- Returns:
- trueif the channel is owned by this subscriber
 
- 
getOwnedCodepublic int getOwnedCode()Description copied from interface:Subscriber.ChannelReturns a numeric representation of if the channel is owned by this subscriber where1represents true and0represents false.- Specified by:
- getOwnedCodein interface- Subscriber.Channel
- Returns:
- a numeric representation of if the channel is owned by this subscriber
 where 1represents true and0represents false
 
- 
getReceivedpublic long getReceived()Description copied from interface:Subscriber.ChannelReturn the number of completed receive requests.- Specified by:
- getReceivedin interface- Subscriber.Channel
- Returns:
- the number of completed receive requests
 
- 
getReceivedMeanRatepublic double getReceivedMeanRate()Description copied from interface:Subscriber.ChannelReturn the mean rate of completed receive requests.- Specified by:
- getReceivedMeanRatein interface- Subscriber.Channel
- Returns:
- the mean rate of completed receive requests
 
- 
getReceivedOneMinuteRatepublic double getReceivedOneMinuteRate()Description copied from interface:Subscriber.ChannelReturn the one-minute rate of completed receive requests.- Specified by:
- getReceivedOneMinuteRatein interface- Subscriber.Channel
- Returns:
- the one-minute rate of completed receive requests
 
- 
getReceivedFiveMinuteRatepublic double getReceivedFiveMinuteRate()Description copied from interface:Subscriber.ChannelReturn the five-minute rate of completed receive requests.- Specified by:
- getReceivedFiveMinuteRatein interface- Subscriber.Channel
- Returns:
- the five-minute rate of completed receive requests
 
- 
getReceivedFifteenMinuteRatepublic double getReceivedFifteenMinuteRate()Description copied from interface:Subscriber.ChannelReturn the fifteen-minute rate of completed receive requests.- Specified by:
- getReceivedFifteenMinuteRatein interface- Subscriber.Channel
- Returns:
- the fifteen-minute rate of completed receive requests
 
 
-